From: Noel Power Date: Wed, 10 Oct 2018 09:15:31 +0000 (+0100) Subject: s4/scripting: PY3 Ensure python scripts are run with correct python ver. X-Git-Tag: tdb-1.3.17~1254 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15b2ab04b7a97fe948aec9169d5d49f22fdb8289;p=thirdparty%2Fsamba.git s4/scripting: PY3 Ensure python scripts are run with correct python ver. 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 Reviewed-by: Andrew Bartlett --- diff --git a/source4/selftest/test_samba3dump.sh b/source4/selftest/test_samba3dump.sh index 01e594a7e8f..6cde2bd07e6 100755 --- a/source4/selftest/test_samba3dump.sh +++ b/source4/selftest/test_samba3dump.sh @@ -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