aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-06-24 15:26:53 -0500
committerRob Landley <rob@landley.net>2012-06-24 15:26:53 -0500
commit728c94a0022d431f80a2333a143fc4dbf1056268 (patch)
tree889e9079eb1fc0fc6f364df3001c8eb9576109ad
parent991bc01b7c8115b79f9374d05f446e792f207c18 (diff)
downloadtoybox-728c94a0022d431f80a2333a143fc4dbf1056268.tar.gz
Work around a Bash bug that removes "." from the $PATH when you're root. (The FSF believes it knows better than you, and won't let you do things, in the name of Freedom.)
-rwxr-xr-xscripts/test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index 64c7dbaa..19f860b4 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -11,7 +11,7 @@ then
fi
cd testdir
-PATH=.:$PATH
+PATH="$(pwd):$PATH"
. "$TOPDIR"/scripts/test/testing.sh
[ -f "$TOPDIR/generated/config.h" ] && export OPTIONFLAGS=:$(echo $(sed -nr 's/^#define CFG_(.*) 1/\1/p' "$TOPDIR/generated/config.h") | sed 's/ /:/g')
@@ -20,6 +20,7 @@ if [ $# -ne 0 ]
then
for i in "$@"
do
+ ln -sf toybox $i
. "$TOPDIR"/scripts/test/$i.test
done
else