projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
991bc01
)
Work around a Bash bug that removes "." from the $PATH when you're root. (The FSF...
author
Rob Landley
<rob@landley.net>
Sun, 24 Jun 2012 20:26:53 +0000
(15:26 -0500)
committer
Rob Landley
<rob@landley.net>
Sun, 24 Jun 2012 20:26:53 +0000
(15:26 -0500)
scripts/test.sh
patch
|
blob
|
history
diff --git
a/scripts/test.sh
b/scripts/test.sh
index
64c7dba
..
19f860b
100755
(executable)
--- 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