From 04b9cee918a40185e8284e0f015e6d653f662185 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 27 Jan 2021 11:30:18 +0100 Subject: [PATCH] Fix testing for curl success in PowerShell Of course doing the natural thing doesn't work in PowerShell. --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index f85fe5f117..ea2ee57d66 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 {