s4-ldb: fixed api.py selftest
authorAndrew Tridgell <tridge@samba.org>
Sat, 6 Feb 2010 03:26:22 +0000 (14:26 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sat, 6 Feb 2010 05:43:55 +0000 (16:43 +1100)
subunitrun seemed to be calling a test from its own source, instead of
the samba test. Fix this by calling the test directly.

source4/selftest/tests.sh

index dd5ffe24bc42a4a114bdb7c764ac25a09855554a..904f1484a80d9e400c7e7d9ab365589b729293f8 100755 (executable)
@@ -436,7 +436,7 @@ then
 fi
 
 SUBUNITRUN="$VALGRIND $PYTHON $samba4srcdir/scripting/bin/subunitrun"
-plantest "ldb.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/ldb/tests/python/" $SUBUNITRUN api
+plantest "ldb.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/ldb/tests/python/" $PYTHON $samba4srcdir/lib/ldb/tests/python/api.py
 plantest "credentials.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/credentials/tests" $SUBUNITRUN bindings
 plantest "gensec.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/gensec/tests" $SUBUNITRUN bindings
 plantest "registry.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/registry/tests/" $SUBUNITRUN bindings