summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource4/selftest/tests.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/selftest/tests.sh b/source4/selftest/tests.sh
index ea00bf2909..e145ea0e3b 100755
--- a/source4/selftest/tests.sh
+++ b/source4/selftest/tests.sh
@@ -82,7 +82,11 @@ plansmbtorturetest() {
samba4srcdir="`dirname $0`/.."
samba4bindir="$BUILDDIR/bin"
smb4torture="$samba4bindir/smbtorture${EXEEXT}"
-TAP2SUBUNIT="$PERL $samba4srcdir/../lib/subunit/tap2subunit"
+if which tap2subunit 2>/dev/null; then
+ TAP2SUBUNIT=tap2subunit
+else
+ TAP2SUBUNIT="$PERL $samba4srcdir/../lib/subunit/tap2subunit"
+fi
$smb4torture -V
bbdir=../testprogs/blackbox