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:
Wang Shilong
2014-10-14 22:59:38 +11:00
committed by Dave Chinner
parent a1a9f6ebbb
commit 5bdda3d8a2
+1 -1
View File
@@ -135,7 +135,7 @@ export UMOUNT_PROG="`set_prog_path umount`"
[ "$UMOUNT_PROG" = "" ] && _fatal "umount not found" [ "$UMOUNT_PROG" = "" ] && _fatal "umount not found"
export FSSTRESS_PROG="./ltp/fsstress" 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`" export PERL_PROG="`set_prog_path perl`"
[ "$PERL_PROG" = "" ] && _fatal "perl not found" [ "$PERL_PROG" = "" ] && _fatal "perl not found"