Skip to content

Commit 3a692b3

Browse files
larsxschneidergitster
authored andcommitted
git-p4: avoid "stat" command in t9815 git-p4-submit-fail
Replace the stat command with the ls command to check file mode bits. The stats command is not available on Windows and has different command line options on OS X. Signed-off-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 22f698c commit 3a692b3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

t/t9815-git-p4-submit-fail.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,8 @@ test_expect_success 'cleanup chmod after submit cancel' '
417417
! p4 fstat -T action text &&
418418
test_path_is_file text+x &&
419419
! p4 fstat -T action text+x &&
420-
if test_have_prereq !CYGWIN
421-
then
422-
stat --format=%A text | egrep ^-r-- &&
423-
stat --format=%A text+x | egrep ^-r-x
424-
fi
420+
ls -l text | egrep ^-r-- &&
421+
ls -l text+x | egrep ^-r-x
425422
)
426423
'
427424

0 commit comments

Comments
 (0)