]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
appveyor: use random test server ports based upon APPVEYOR_API_URL
authorMarc Hoersken <info@marc-hoersken.de>
Mon, 9 Mar 2020 12:51:35 +0000 (13:51 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Sun, 5 Apr 2020 15:39:43 +0000 (17:39 +0200)
Avoid conflicts of test server ports with AppVeyor API on localhost.

Closes #5034

appveyor.yml

index c672ac96dfb073e4d83689abfc4ea3ecd09fae4b..c5d1e085166e82a8e7b0a72ef091829afdb67409 100644 (file)
@@ -249,7 +249,8 @@ build_script:
 
 test_script:
     - if %TESTING%==ON (
-        bash.exe -e -l -c "cd /c/projects/curl/tests && ./runtests.pl -a -p !flaky %DISABLED_TESTS%" )
+        echo APPVEYOR_API_URL=%APPVEYOR_API_URL% &&
+        bash.exe -e -l -c "cd /c/projects/curl/tests && ./runtests.pl -a -b$(($(echo '%APPVEYOR_API_URL%' | cut -d'/' -f3 | cut -d':' -f2)+1)) -p !flaky %DISABLED_TESTS%" )
 
 # whitelist branches to avoid testing feature branches twice (as branch and as pull request)
 branches: