i18n: unpack-trees: avoid substituting only a verb in sentences
[gitweb.git] / t / t9815-git-p4-submit-fail.sh
index d2b7b3d98d77a18657f536af54b159230a1ea057..37b42d03a2b4f6392c3b84303c52a839caa6befd 100755 (executable)
@@ -405,8 +405,8 @@ test_expect_success 'cleanup chmod after submit cancel' '
        git p4 clone --dest="$git" //depot &&
        (
                cd "$git" &&
-               chmod u+x text &&
-               chmod u-x text+x &&
+               test_chmod +x text &&
+               test_chmod -x text+x &&
                git add text text+x &&
                git commit -m "chmod texts" &&
                echo n | test_expect_code 1 git p4 submit
@@ -415,10 +415,10 @@ test_expect_success 'cleanup chmod after submit cancel' '
                cd "$cli" &&
                test_path_is_file text &&
                ! p4 fstat -T action text &&
-               stat --format=%A text | egrep ^-r-- &&
                test_path_is_file text+x &&
                ! p4 fstat -T action text+x &&
-               stat --format=%A text+x | egrep ^-r-x
+               ls -l text | egrep ^-r-- &&
+               ls -l text+x | egrep ^-r-x
        )
 '