Fix testing for curl success in PowerShell

Of course doing the natural thing doesn't work in PowerShell.
This commit is contained in:
Vadim Zeitlin
2021-01-27 11:30:18 +01:00
parent d59d51e0f2
commit 04b9cee918

View File

@@ -78,7 +78,8 @@ 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
if (curl.exe -s http://127.0.0.1:5000/ip > $null) {
curl.exe -s http://127.0.0.1:5000/ip > $null
if ($lastExitCode -eq "0") {
$env:WX_TEST_WEBREQUEST_URL="http://127.0.0.1:5000"
}
else {