Give more details if launching httpbin fails in AppVeyor CI
Show curl errors and also dump the log file in this case.
This commit is contained in:
parent
0af3c92890
commit
0d1ef21463
1 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue