diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-02-03 17:30:53 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-02-07 13:22:00 +1100 |
commit | b49973404c4afb6e3f04a37f002655a3157542e3 (patch) | |
tree | 6ac03b3987b8a71f1f986d2117854336e7b58dbe /testprogs/blackbox/subunit.sh | |
parent | 6484da4859fe9b00a7129d89e185bb7947621243 (diff) | |
download | samba-b49973404c4afb6e3f04a37f002655a3157542e3.tar.gz samba-b49973404c4afb6e3f04a37f002655a3157542e3.tar.bz2 samba-b49973404c4afb6e3f04a37f002655a3157542e3.zip |
blackbox: removed assumption of build directory
this fixes the blackbox tests for a top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'testprogs/blackbox/subunit.sh')
-rwxr-xr-x | testprogs/blackbox/subunit.sh | 8 |
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 |