]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/data/test302[12]: fix MSYS2 path conversion of hostpubsha256
authorMarc Hoersken <info@marc-hoersken.de>
Mon, 13 Dec 2021 11:15:16 +0000 (12:15 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Tue, 14 Dec 2021 06:43:16 +0000 (07:43 +0100)
Ref: https://www.msys2.org/wiki/Porting/#filesystem-namespaces

Reviewed-by: Marcel Raad
Reviewed-by: Jay Satiro
Fixes #8084
Closes #8138

tests/data/test3021
tests/data/test3022

index bd6ae8d6dc4736c67c6fa7e2dc40d55a7c6901ab..1b23ff048268256430c9563d32f93e323a92280e 100644 (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>
index db24ca9f4a019226d2413670430a0b45ce153693..3e117701ad97a5a3f7646dea21d22c5bdad7b99a 100644 (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>