s4/utils/test: PY3 make sure we call correct python version for samba-tool
authorNoel Power <noel.power@suse.com>
Fri, 16 Nov 2018 19:32:31 +0000 (19:32 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:20 +0000 (10:38 +0100)
fixes samba4.blackbox.samba_tool blackbox test

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

index 289a753b6688becab4afffb450fe79ff2b165ea5..57dcb992f7b2e51ad878cb1979793681449b031a 100755 (executable)
@@ -34,12 +34,12 @@ testit "Test login with --machine-pass without kerberos" $VALGRIND $smbclient -c
 
 testit "Test login with --machine-pass and kerberos" $VALGRIND $smbclient -c 'ls' $CONFIGURATION //$SERVER/tmp --machine-pass -k yes
 
-testit "time" $VALGRIND $samba_tool time $SERVER $CONFIGURATION  -W "$DOMAIN" -U"$USERNAME%$PASSWORD" $@
+testit "time" $VALGRIND $PYTHON $samba_tool time $SERVER $CONFIGURATION  -W "$DOMAIN" -U"$USERNAME%$PASSWORD" $@
 
-testit "domain level.show" $VALGRIND $samba_tool domain level show
+testit "domain level.show" $VALGRIND $PYTHON $samba_tool domain level show
 
-testit "domain info" $VALGRIND $samba_tool domain info $SERVER_IP
+testit "domain info" $VALGRIND $PYTHON $samba_tool domain info $SERVER_IP
 
-testit "fsmo show" $VALGRIND $samba_tool fsmo show
+testit "fsmo show" $VALGRIND $PYTHON $samba_tool fsmo show
 
 exit $failed