fstests: add _require_command check to killall

Some tests use killall command, but killall may not exist.
We should check whether killall exists or not.

Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Masayoshi Mizuma
2016-06-13 11:58:01 +09:00
committed by Eryu Guan
parent c0c6e54ce6
commit 2fb853cd58
12 changed files with 28 additions and 17 deletions
+2 -1
View File
@@ -69,7 +69,7 @@ _workout()
sleep $enospc_time
done
killall $tmp.fsstress.bin
$KILLALL_PROG $tmp.fsstress.bin
wait $pid
}
@@ -79,6 +79,7 @@ _supported_os Linux
_require_quota
_require_user
_require_scratch
_require_command "$KILLALL_PROG" killall
rm -f $seqres.full
_scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1