summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-02-26 16:32:57 +0100
committerMichael Adam <obnox@samba.org>2009-02-26 21:28:53 +0100
commitfe8cf69ec644f399d4b41c21b74703e0e500e092 (patch)
treeb59e0863f7ef7a7ba2617c630d02cf84d17edc2e /source4
parent3121249243f52dcbf8083f5ff137bd580515efa7 (diff)
downloadsamba-fe8cf69ec644f399d4b41c21b74703e0e500e092.tar.gz
samba-fe8cf69ec644f399d4b41c21b74703e0e500e092.tar.bz2
samba-fe8cf69ec644f399d4b41c21b74703e0e500e092.zip
don't hardcode python path
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4')
-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 36e3bbe364..99e530ec38 100755
--- a/source4/selftest/tests.sh
+++ b/source4/selftest/tests.sh
@@ -23,6 +23,11 @@ then
PERL=perl
fi
+if [ ! -n "$PYTHON" ]
+then
+ PYTHON=python
+fi
+
plantest() {
name=$1
env=$2
@@ -394,7 +399,6 @@ then
plantest "nss.test using winbind" member $VALGRIND $nsstest4 $samba4bindir/shared/libnss_winbind.so
fi
-PYTHON=/usr/bin/python
SUBUNITRUN="$VALGRIND $PYTHON $samba4srcdir/scripting/bin/subunitrun"
plantest "ldb.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/ldb/tests/python/" $SUBUNITRUN api
plantest "credentials.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/credentials/tests" $SUBUNITRUN bindings