summaryrefslogtreecommitdiffstats
path: root/runtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'runtest.sh')
-rwxr-xr-xruntest.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtest.sh b/runtest.sh
index 14bd87c6..3ee4e462 100755
--- a/runtest.sh
+++ b/runtest.sh
@@ -7,6 +7,12 @@ if [ ! -d testsuite ]; then
fi
SRCDIR=`dirname $0`
+if expr "$SRCDIR" : "/.*" >/dev/null
+then
+ true # already absolute, groovy!
+else
+ SRCDIR="`pwd`/$SRCDIR"
+fi
export SRCDIR
SYSTEMTAP_TAPSET=$SRCDIR/tapset