summaryrefslogtreecommitdiffstats
path: root/runtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'runtest.sh')
-rwxr-xr-xruntest.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtest.sh b/runtest.sh
index c67b66a8..0129b8ae 100755
--- a/runtest.sh
+++ b/runtest.sh
@@ -2,4 +2,8 @@
# Redirect stdout/stderr to /dev/null before invoking the given test
-exec $@ >/dev/null 2>&1
+SRCDIR=`dirname $0`
+export SRCDIR
+
+exec >/dev/null 2>&1
+exec ${1+"$@"}