From: Pádraig Brady Date: Fri, 18 Jul 2014 17:59:29 +0000 (+0100) Subject: tests: fix false failure with spaces in the test directory X-Git-Tag: v8.23~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2438f0a1a211d19b7702067e4664063aa5ea19;p=thirdparty%2Fcoreutils.git tests: fix false failure with spaces in the test directory * tests/misc/env.sh: Skip if we can't execute the generated shebang, which would be the case if there are spaces in the directory hierarchy. This is triggered by `make distcheck` --- diff --git a/tests/misc/env.sh b/tests/misc/env.sh index 883c58f546..d06a1fb08e 100755 --- a/tests/misc/env.sh +++ b/tests/misc/env.sh @@ -25,6 +25,10 @@ echo "#!$abs_top_builddir/src/echo simple_echo" > simple_echo \ || framework_failure_ chmod a+x simple_echo || framework_failure_ +# Verify we can run the shebang which is not the case if +# there are spaces in $abs_top_builddir. +./simple_echo || skip_ "Error running simple_echo script" + # Verify clearing the environment a=1 export a