mirror of
https://github.com/curl/curl.git
synced 2026-06-04 20:04:14 +03:00
test613: make it pass on Windows, fix postprocess, unignore in CI
- on native Windows (also when using MSYS2 openssh), the group and other permissions do not end up as requested by Perl's chmod: ```diff --- log/8/check-expected +++ log/8/check-generated @@ -1,3 +1,3 @@ d????????? N U U N ??? N NN:NN asubdir[LF] --rw?rw?rw? 1 U U 37 Jan 1 2000 plainfile.txt[LF] +-rw?r-?r-? 1 U U 37 Jan 1 2000 plainfile.txt[LF] -r-?r-?r-? 1 U U 47 Dec 31 2000 rofile.txt[LF] ``` Ref: https://github.com/curl/curl/actions/runs/14004029192/job/39215359241?pr=16781#step:15:1596 Fix it by ignoring group and other attributes. - fix failing postprocess cleanup by making the read-only test file writeable again before deleting it. Fixing: ``` Directory not empty at ../../tests/libtest/test613.pl line 83. ``` (seen on Windows with Git for Windows `perl.exe`) - unignore in GHA/windows. Closes #16791
This commit is contained in:
parent
d838d43430
commit
efa65b24ae
4 changed files with 9 additions and 18 deletions
5
.github/workflows/windows.yml
vendored
5
.github/workflows/windows.yml
vendored
|
|
@ -349,7 +349,6 @@ jobs:
|
|||
TFLAGS+=' ~SCP ~SFTP' # Flaky: `-8, Unable to exchange encryption keys`. https://github.com/libssh2/libssh2/issues/804
|
||||
fi
|
||||
fi
|
||||
TFLAGS+=' ~613' # 'SFTP directory retrieval' SFTP, directory
|
||||
if [ -x "$(cygpath "${SYSTEMROOT}/System32/curl.exe")" ]; then
|
||||
TFLAGS+=" -ac $(cygpath "${SYSTEMROOT}/System32/curl.exe")"
|
||||
fi
|
||||
|
|
@ -937,9 +936,7 @@ jobs:
|
|||
if [[ '${{ matrix.install }}' = *'libssh2[core,zlib]'* ]]; then
|
||||
TFLAGS+=' ~SCP ~SFTP' # Flaky: `-8, Unable to exchange encryption keys`. https://github.com/libssh2/libssh2/issues/804
|
||||
fi
|
||||
if [ '${{ matrix.openssh }}' = '' ]; then # MSYS2 openssh
|
||||
TFLAGS+=' ~613' # 'SFTP directory retrieval' SFTP, directory
|
||||
else # OpenSSH-Windows
|
||||
if [ -n '${{ matrix.openssh }}' ]; then # OpenSSH-Windows
|
||||
TFLAGS+=' ~601 ~603 ~617 ~619 ~621 ~641 ~665 ~2004' # SCP
|
||||
if [[ '${{ matrix.install }}' = *'libssh '* ]]; then
|
||||
TFLAGS+=' ~614' # 'SFTP pre-quote chmod' SFTP, pre-quote, directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue