testprogs/blackbox: make sure samba-tool is called with correct python
[sfrench/samba-autobuild/.git] / 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