From 5bdda3d8a23ec5ed30c77c715867bede5f12cb77 Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Tue, 14 Oct 2014 22:59:38 +1100 Subject: [PATCH] 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 --- common/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.5