summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2021-12-13 12:15:16 +0100
committerMarc Hoersken <info@marc-hoersken.de>2021-12-14 07:43:16 +0100
commit52202691d1bfe28678c8db57141e9ef390ff322a (patch)
tree312b266ed15b7879ba2c1aa7f9f47a15a0976ac8
parent2300ad26d374721fd01a69a3d7d8ed384f581462 (diff)
downloadcurl-52202691d1bfe28678c8db57141e9ef390ff322a.tar.gz
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
-rw-r--r--tests/data/test30215
-rw-r--r--tests/data/test30225
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/data/test3021 b/tests/data/test3021
index bd6ae8d6d..1b23ff048 100644
--- a/tests/data/test3021
+++ b/tests/data/test3021
@@ -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>
diff --git a/tests/data/test3022 b/tests/data/test3022
index db24ca9f4..3e117701a 100644
--- a/tests/data/test3022
+++ b/tests/data/test3022
@@ -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>