mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Eryu Guan
parent
c0c6e54ce6
commit
2fb853cd58
+2
-1
@@ -48,6 +48,7 @@ _supported_os IRIX Linux
|
||||
|
||||
_require_scratch
|
||||
_require_freeze
|
||||
_require_command "$KILLALL_PROG" killall
|
||||
|
||||
rm -f $seqres.full
|
||||
_scratch_mkfs_xfs -d agcount=16,su=256k,sw=12 -l su=256k,size=5120b >/dev/null 2>&1
|
||||
@@ -79,7 +80,7 @@ while [ $LOOP -gt 0 ];do
|
||||
let LOOP=$LOOP-1
|
||||
done
|
||||
echo "Test done" | tee -a $seqres.full
|
||||
killall -q $FSSTRESS_PROG
|
||||
$KILLALL_PROG -q $FSSTRESS_PROG
|
||||
wait
|
||||
|
||||
status=0
|
||||
|
||||
Reference in New Issue
Block a user