зеркало из https://github.com/microsoft/git.git
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 <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
22f698cb18
Коммит
3a692b3c87
|
@ -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
|
||||
)
|
||||
'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче