From 4b02667d8c0993f2682bb3b1fb1db57c069fa797 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 22 Apr 2016 19:08:56 -0500 Subject: Allow EVAL= to run test under a different shell (for sh.test) --- scripts/runtest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/runtest.sh') 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 -- cgit v1.2.3