Fix testing for curl success in PowerShell
Of course doing the natural thing doesn't work in PowerShell.
This commit is contained in:
parent
d59d51e0f2
commit
04b9cee918
1 changed files with 2 additions and 1 deletions
|
|
@ -78,7 +78,8 @@ before_test:
|
||||||
pip.exe --disable-pip-version-check install httpbin
|
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-Job -Name wx_httpbin { python.exe -m httpbin.core 2>&1 > c:\projects\wxwidgets\httpbin.log }
|
||||||
Start-Sleep -Seconds 5
|
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"
|
$env:WX_TEST_WEBREQUEST_URL="http://127.0.0.1:5000"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue