summaryrefslogtreecommitdiffstats
path: root/runtest.sh
diff options
context:
space:
mode:
authorfche <fche>2005-08-30 02:03:07 +0000
committerfche <fche>2005-08-30 02:03:07 +0000
commitf76466b96129b093742f088505baebc8b1e84e25 (patch)
tree4e1589aec8901a707812ce9ad41bb8745bae0160 /runtest.sh
parentba4a90fd18a9c94624a38d660c6e7ca6230c271f (diff)
downloadsystemtap-steved-f76466b96129b093742f088505baebc8b1e84e25.tar.gz
systemtap-steved-f76466b96129b093742f088505baebc8b1e84e25.tar.xz
systemtap-steved-f76466b96129b093742f088505baebc8b1e84e25.zip
2005-08-29 Frank Ch. Eigler <fche@redhat.com>
* runtest.sh: Tolerate relative $SRCDIR.
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