Skip to content

Commit

Permalink
Fix XUnitLogChecker detection for local test runs (#96638)
Browse files Browse the repository at this point in the history
* Fix XUnitLogChecker detection for local test runs

* DO NOT MERGE: Temporary crash to confirm XUnitLogChecker still works as expected in the CI.

* Revert "DO NOT MERGE: Temporary crash to confirm XUnitLogChecker still works as expected in the CI."

This reverts commit 9e01406.

* Skip in Unix too
  • Loading branch information
carlossanlop authored Jan 9, 2024
1 parent 0a9a3e9 commit 4e97ec2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions eng/testing/RunnerTemplate.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ if %_exit_code%==1 (
)
)

if "%HELIX_CORRELATION_PAYLOAD%"=="" (
GOTO SKIP_XUNITLOGCHECKER
)
if NOT "%__IsXUnitLogCheckerSupported%"=="1" (
echo XUnitLogChecker not supported for this test case. Skipping.
GOTO SKIP_XUNITLOGCHECKER
Expand Down
4 changes: 3 additions & 1 deletion eng/testing/RunnerTemplate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ if [ -n "$HELIX_WORKITEM_PAYLOAD" ]; then

fi

if [[ -z "$__IsXUnitLogCheckerSupported" ]]; then
if [[ -z "$HELIX_CORRELATION_PAYLOAD" ]]; then
: # Skip XUnitLogChecker execution
elif [[ -z "$__IsXUnitLogCheckerSupported" ]]; then
echo "The '__IsXUnitLogCheckerSupported' env var is not set."
elif [[ "$__IsXUnitLogCheckerSupported" != "1" ]]; then
echo "XUnitLogChecker not supported for this test case. Skipping."
Expand Down

0 comments on commit 4e97ec2

Please sign in to comment.