Skip to content

Commit

Permalink
git-p4: avoid "stat" command in t9815 git-p4-submit-fail
Browse files Browse the repository at this point in the history
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 <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Lars Schneider authored and Junio C Hamano committed Oct 12, 2015
1 parent 22f698c commit 3a692b3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions t/t9815-git-p4-submit-fail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,8 @@ test_expect_success 'cleanup chmod after submit cancel' '
! p4 fstat -T action text &&
test_path_is_file text+x &&
! p4 fstat -T action text+x &&
if test_have_prereq !CYGWIN
then
stat --format=%A text | egrep ^-r-- &&
stat --format=%A text+x | egrep ^-r-x
fi
ls -l text | egrep ^-r-- &&
ls -l text+x | egrep ^-r-x
)
'

Expand Down

0 comments on commit 3a692b3

Please sign in to comment.