s4/scripting: PY3 Ensure python scripts are run with correct python ver.
authorNoel Power <noel.power@suse.com>
Wed, 10 Oct 2018 09:15:31 +0000 (10:15 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:25 +0000 (05:50 +0200)
As part of port samba4.blackbox.samba3dump to python2/3
make sure test_samba3dump.sh runs samba3dump with $PYTHON which should
define the correct python version.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/selftest/test_samba3dump.sh

index 01e594a7e8fd0e707faa1e4d4bbb7a809e9e441f..6cde2bd07e6ea38ea5e0cbfaec8b45eefffe0551 100755 (executable)
@@ -7,7 +7,7 @@ subunit_start_test samba3dump
 
 SRCDIR=`dirname $0`/../..
 
-if $SRCDIR/source4/scripting/bin/samba3dump $SRCDIR/testdata/samba3; then
+if $PYTHON $SRCDIR/source4/scripting/bin/samba3dump $SRCDIR/testdata/samba3; then
        subunit_pass_test samba3dump
 else
        echo | subunit_fail_test samba3dump