nsswitch/tests: PY3 samba_tool call correct python
authorNoel Power <noel.power@suse.com>
Fri, 16 Nov 2018 19:44:08 +0000 (19:44 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:20 +0000 (10:38 +0100)
fix samba4.blackbox.rfc2307_mapping

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

index 4fd93a4ddaf0ea15a27137a66fba9e47f98aa0a7..8ab814cd7d043f27a9b8aa404a54794290d24a6a 100755 (executable)
@@ -62,10 +62,10 @@ knownfail() {
 
 
 # Create new testing account
-testit "user add" $samba_tool user create --given-name="rfc2307" --surname="Tester" --initial="UT" rfc2307_test_user testp@ssw0Rd $@
+testit "user add" $PYTHON $samba_tool user create --given-name="rfc2307" --surname="Tester" --initial="UT" rfc2307_test_user testp@ssw0Rd $@
 
 #test creation of six different groups
-testit "group add" $samba_tool group add $CONFIG --group-scope='Domain' --group-type='Security' rfc2307_test_group $@
+testit "group add" $PYTHON $samba_tool group add $CONFIG --group-scope='Domain' --group-type='Security' rfc2307_test_group $@
 
 # Create new testing group
 
@@ -180,7 +180,7 @@ else
        echo "success: wbinfo -Y check for sane mapping"
 fi
 
-testit "group delete" $samba_tool group delete rfc2307_test_group $@
-testit "user delete" $samba_tool user delete rfc2307_test_user $@
+testit "group delete" $PYTHON $samba_tool group delete rfc2307_test_group $@
+testit "user delete" $PYTHON $samba_tool user delete rfc2307_test_user $@
 
 exit $failed