diff options
author | Rob Landley <rob@landley.net> | 2016-04-22 19:08:56 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-04-22 19:08:56 -0500 |
commit | 4b02667d8c0993f2682bb3b1fb1db57c069fa797 (patch) | |
tree | 3bd3a2e76d6d0c57fed08c712cea3758cd7ead27 /scripts | |
parent | bb77dde5ddfba8fe0c819b18b547c2d710956502 (diff) | |
download | toybox-4b02667d8c0993f2682bb3b1fb1db57c069fa797.tar.gz |
Allow EVAL= to run test under a different shell (for sh.test)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/runtest.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 0c933c2c..875ce572 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -83,7 +83,7 @@ testing() echo -ne "$3" > expected echo -ne "$4" > input - echo -ne "$5" | eval "$2" > actual + echo -ne "$5" | ${EVAL:-eval} "$2" > actual RETVAL=$? # Catch segfaults @@ -98,7 +98,7 @@ testing() if [ -n "$VERBOSE" ] then [ ! -z "$4" ] && echo "echo -ne \"$4\" > input" - echo "echo -ne '$5' | $2" + echo "echo -ne '$5' |$EVAL $2" diff -au expected actual [ "$VERBOSE" == fail ] && exit 1 fi |