testprogs/blackbox: make sure samba-tool is called with correct python
authorNoel Power <noel.power@suse.com>
Mon, 5 Nov 2018 14:12:24 +0000 (14:12 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:20 +0000 (10:38 +0100)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
testprogs/blackbox/test_samba-tool_ntacl.sh

index f5387043f436aee4b203fc89b7f888e3593b84a4..b00d4f29ac269da73c2dd8a589af07f64454d6b4 100755 (executable)
@@ -31,7 +31,7 @@ test_get_acl()
        testfile="$1"
        exptextedacl="$2"
 
-       retacl=$($samba_tool ntacl get "$testfile" --as-sddl) || return $?
+       retacl=$($PYTHON $samba_tool ntacl get "$testfile" --as-sddl) || return $?
 
        test "$retacl" = "$exptextedacl"
 }
@@ -41,7 +41,7 @@ test_set_acl()
        testfile="$1"
        acl="$2"
 
-       $samba_tool ntacl set "$acl" "$testfile"
+       $PYTHON $samba_tool ntacl set "$acl" "$testfile"
 }
 
 # work around include error - s4-loadparm does not allow missing include files