diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-03-09 13:51:35 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-04-05 17:39:43 +0200 |
commit | 45b843cbb8b18a4474624e1bcce05171b845ac75 (patch) | |
tree | dcb45170855f0bfcdd4d9e63c7e648eb8efd662a /appveyor.yml | |
parent | b667bbe2caf7e7d285b225794f6ae041bdf36093 (diff) | |
download | curl-45b843cbb8b18a4474624e1bcce05171b845ac75.tar.gz |
appveyor: use random test server ports based upon APPVEYOR_API_URL
Avoid conflicts of test server ports with AppVeyor API on localhost.
Closes #5034
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/appveyor.yml b/appveyor.yml index c672ac96d..c5d1e0851 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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: |