From 57ff96be8eb4fd920fbf6dfc231b3a244390f75e Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 20 Oct 2018 15:49:33 -0400 Subject: [PATCH] CI/AppVeyor: fix MSBuild hack for functional tests PR #9087 changed the error string by removing 'Running', breaking the MSBuild hack detecting failure for functional tests. If stdout or stderr has a line with 'functional tests failed with error', fail the build. --- ci/build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build.ps1 b/ci/build.ps1 index bb4d3a9b23..c82a74714c 100644 --- a/ci/build.ps1 +++ b/ci/build.ps1 @@ -103,7 +103,7 @@ $failed = $false Set-PSDebug -Off cmake --build . --config $cmakeBuildType --target functionaltest -- $cmakeGeneratorArgs 2>&1 | foreach { $failed = $failed -or - $_ -match 'Running functional tests failed with error'; $_ } + $_ -match 'functional tests failed with error'; $_ } Set-PSDebug -Trace 1 if ($failed) { exit $LastExitCode