Skip to content

Commit fe6af29

Browse files
committed
programs/stress-ng/run: log detail steps
Signed-off-by: Philip Li <[email protected]>
1 parent e848ed3 commit fe6af29

File tree

1 file changed

+4
-3
lines changed
  • programs/stress-ng

1 file changed

+4
-3
lines changed

programs/stress-ng/run

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mount_dev()
2323
log_cmd mount $partition $mnt 2>/dev/null
2424

2525
# shellcheck disable=SC2164
26-
cd $mnt
26+
log_cmd cd $mnt
2727
}
2828

2929
## some options are universal, put them in universal_setting
@@ -84,7 +84,7 @@ setup_test()
8484
;;
8585
"aiol")
8686
# 081aa00e16a9 ("tests/stress-ng: sleep 2s before run_test to fix stress-ng-aiol open fail")
87-
sleep 2
87+
log_cmd sleep 2
8888
;;
8989
"bad-ioctl"|"sysinval"|"cpu-online"|"mlockmany"|"oom-pipe"|"bind-mount"|"watchdog"|"smi")
9090
common_opts="${common_opts} --pathological"
@@ -103,7 +103,8 @@ run_test()
103103

104104
if [ "$test" = "exec" ] || [ "$test" = "spawn" ] || [ "$test" = "bad-ioctl" ]; then
105105
# these stressors need to be running without root privilege
106-
mkdir /home/lkp && chown -R lkp:lkp /home/lkp
106+
log_cmd mkdir /home/lkp
107+
log_cmd chown -R lkp:lkp /home/lkp
107108
log_cmd su - lkp -s /bin/bash -c "stress-ng $common_opts --$test $nr_threads 2>&1"
108109
else
109110
log_cmd stress-ng $common_opts --$test $nr_threads 2>&1

0 commit comments

Comments
 (0)