]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Avoid test failure when `make check' is run through debuild.
authorJim Meyering <jim@meyering.net>
Sat, 19 Aug 2006 18:30:04 +0000 (18:30 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 19 Aug 2006 18:30:04 +0000 (18:30 +0000)
* tests/help-version: Ensure that $SHELL is set to some value
and exported.  Patch from Sven Joachim.  For details, see
<http://bugs.debian.org/355368>.

ChangeLog
tests/help-version

index cbe595c4b1d4972d8ee914b83e739ddeca601a9e..c5bad2fb376de9a1726a5a23ae2906618b6f05c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-08-19  Jim Meyering  <jim@meyering.net>
 
+       Avoid test failure when `make check' is run through debuild.
+       * tests/help-version: Ensure that $SHELL is set to some value
+       and exported.  Patch from Sven Joachim.  For details, see
+       <http://bugs.debian.org/355368>.
+
        * tests/ls/stat-dtype: Test for the 2006-08-17 `ls -CF' fix.
 
        * README: Describe potential "pre-C99 build failure", and work-around.
index 2ed9312f0572afcf0c9c0f7efab8819fbdc80a0d..a16ec01769f6975d5591e5451674accbdb39c770 100755 (executable)
 
 test "$VERBOSE" = yes && set -x
 
-# Ensure that $SHELL is set to *some* value.
+# Ensure that $SHELL is set to *some* value and exported.
 # This is required for dircolors, which would fail e.g., when
 # invoked via debuild (which removes SHELL from the environment).
-if test "x$SHELL" = x; then
-  SHELL=/bin/sh
-  export SHELL
-fi
+test "x$SHELL" = x && SHELL=/bin/sh
+export SHELL
 
 expected_failure_status_nohup=127
 expected_failure_status_printenv=2