From: Wang Shilong Date: Tue, 14 Oct 2014 11:59:38 +0000 (+1100) Subject: common: fix test for ltp/fsstress X-Git-Tag: v2022.05.01~3031 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5bdda3d8a23ec5ed30c77c715867bede5f12cb77;p=xfstests-dev.git 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 Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/config b/common/config index d68d4d0c..64506a23 100644 --- a/common/config +++ b/common/config @@ -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"