mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: fix test for ltp/fsstress
Testing if FSSTRESS_PROG is a null string dosen't make sense because it has just been set. Here fix it by testing if it is an executable file. Signed-off-by: Wang Shilong <wangshilong1991@gmail.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
a1a9f6ebbb
commit
5bdda3d8a2
+1
-1
@@ -135,7 +135,7 @@ export UMOUNT_PROG="`set_prog_path umount`"
|
||||
[ "$UMOUNT_PROG" = "" ] && _fatal "umount not found"
|
||||
|
||||
export FSSTRESS_PROG="./ltp/fsstress"
|
||||
[ "$FSSTRESS_PROG" = "" ] && _fatal "fsstress not found"
|
||||
[ ! -x $FSSTRESS_PROG ] && _fatal "fsstress not found or executable"
|
||||
|
||||
export PERL_PROG="`set_prog_path perl`"
|
||||
[ "$PERL_PROG" = "" ] && _fatal "perl not found"
|
||||
|
||||
Reference in New Issue
Block a user