tests/data/test302[12]: fix MSYS2 path conversion of hostpubsha256

Ref: https://www.msys2.org/wiki/Porting/#filesystem-namespaces

Reviewed-by: Marcel Raad
Reviewed-by: Jay Satiro

Fixes #8084
Closes #8138
This commit is contained in:
Marc Hoersken 2021-12-13 12:15:16 +01:00
parent 2300ad26d3
commit 52202691d1
No known key found for this signature in database
GPG Key ID: 61E03CBED7BC859E
2 changed files with 10 additions and 0 deletions

View File

@ -30,6 +30,11 @@ SFTP correct sha256 host key
<command>
--hostpubsha256 %SSHSRVSHA256 --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SSH_PWD/log/file%TESTNUMBER.txt
</command>
<setenv>
# Needed for MSYS2 to not treat the argument as a POSIX path list
# that has to be converted to Windows paths
MSYS2_ARG_CONV_EXCL=/
</setenv>
<file name="log/file%TESTNUMBER.txt">
test
</file>

View File

@ -30,6 +30,11 @@ SCP correct sha256 host key
<command>
--hostpubsha256 %SSHSRVSHA256 --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%SSH_PWD/log/file%TESTNUMBER.txt
</command>
<setenv>
# Needed for MSYS2 to not treat the argument as a POSIX path list
# that has to be converted to Windows paths
MSYS2_ARG_CONV_EXCL=/
</setenv>
<file name="log/file%TESTNUMBER.txt">
test
</file>