summaryrefslogtreecommitdiff
path: root/testprogs/blackbox/subunit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/blackbox/subunit.sh')
-rwxr-xr-xtestprogs/blackbox/subunit.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/testprogs/blackbox/subunit.sh b/testprogs/blackbox/subunit.sh
index 990bee57a6..b8e5b5b322 100755
--- a/testprogs/blackbox/subunit.sh
+++ b/testprogs/blackbox/subunit.sh
@@ -83,3 +83,11 @@ testit_expect_failure () {
fi
return $status
}
+
+# work out the top level source directory
+if [ -d source4 ]; then
+ SRCDIR="."
+else
+ SRCDIR=".."
+fi
+export SRCDIR