From 0d1ef214638b3e8f472f68342ffff43f72bc2a7f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 28 Mar 2023 22:39:44 +0200 Subject: [PATCH] Give more details if launching httpbin fails in AppVeyor CI Show curl errors and also dump the log file in this case. --- appveyor.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index cdddc2d10b..e3baccd456 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -85,12 +85,13 @@ before_test: pip.exe --disable-pip-version-check install httpbin Start-Job -Name wx_httpbin { python.exe -m httpbin.core 2>&1 > c:\projects\wxwidgets\httpbin.log } Start-Sleep -Seconds 5 - curl.exe -s http://127.0.0.1:5000/ip > $null + curl.exe --silent --show-error http://127.0.0.1:5000/ip > $null if ($lastExitCode -eq "0") { $env:WX_TEST_WEBREQUEST_URL="http://127.0.0.1:5000" } else { - Write-Error "Disabling wxWebRequest tests as launching httpbin failed." + Write-Error "Disabling wxWebRequest tests as launching httpbin failed, log follows:" + Get-Content c:\projects\wxwidgets\httpbin.log $env:WX_TEST_WEBREQUEST_URL="0" }