From 682d954262a9aa0367799d9a12384b170440a3a4 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Thu, 16 Nov 2023 23:09:28 -0500 Subject: [PATCH] Fix Windows Live tests always succeeding --- .github/workflows/ci-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 82252adb17..4439daea55 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -468,11 +468,11 @@ jobs: sleep 10 set +e test_output=$(dotnet test -c ${{ matrix.configuration }} --no-build --filter TestCategory=RequiresDatabase --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" --collect:"XPlat Code Coverage" --settings ../../build/ci.runsettings --results-directory ../../TestResults) - succeeded=$? + retval=$? set -e cd ../.. echo $test_output > ./test_output.txt - if [[ $retVal -ne 0 ]]; then + if [[ $retval -ne 0 ]]; then echo "succeeded=NO" >> $GITHUB_OUTPUT else echo "succeeded=YES" >> $GITHUB_OUTPUT