From 6a170343ae8244e404f7b9314a2219af9a637503 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 27 Jan 2021 10:04:31 +0100 Subject: [PATCH] Disable the tests if launching httpbin failed for some reason This is not ideal, but will have to do for now. --- appveyor.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 7f18a6058e..fb44705ca0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -76,8 +76,14 @@ before_test: Write-Output "Getting and launching httpbin." C:\Python35\Scripts\pip.exe --disable-pip-version-check --no-warn-script-location install httpbin Start-Job -Name wx_httpbin { C:\Python35\python.exe -m httpbin.core 2>&1 > c:\projects\wxwidgets\httpbin.log } - curl http://127.0.0.1:5000/ip - $env:WX_TEST_WEBREQUEST_URL="http://127.0.0.1:5000" + Start-Sleep -Seconds 5 + if (curl -s http://127.0.0.1:5000/ip > $null) { + $env:WX_TEST_WEBREQUEST_URL="http://127.0.0.1:5000" + } + else { + Write-Error "Disabling wxWebRequest tests as launching httpbin failed." + $env:WX_TEST_WEBREQUEST_URL="0" + } test_script: c:\projects\wxwidgets\build\tools\appveyor-test.bat