blackbox: removed assumption of build directory
[samba.git] / testprogs / blackbox / subunit.sh
index 990bee57a6290590ee2f3b1e7c503b9e15be38ab..b8e5b5b322858483dbeeb6cdeb7eb1db2776d99a 100755 (executable)
@@ -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