Skip to content

Commit 4e97ec2

Browse files
authored
Fix XUnitLogChecker detection for local test runs (#96638)
* 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
1 parent 0a9a3e9 commit 4e97ec2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

eng/testing/RunnerTemplate.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ if %_exit_code%==1 (
9898
)
9999
)
100100

101+
if "%HELIX_CORRELATION_PAYLOAD%"=="" (
102+
GOTO SKIP_XUNITLOGCHECKER
103+
)
101104
if NOT "%__IsXUnitLogCheckerSupported%"=="1" (
102105
echo XUnitLogChecker not supported for this test case. Skipping.
103106
GOTO SKIP_XUNITLOGCHECKER

eng/testing/RunnerTemplate.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ if [ -n "$HELIX_WORKITEM_PAYLOAD" ]; then
233233

234234
fi
235235

236-
if [[ -z "$__IsXUnitLogCheckerSupported" ]]; then
236+
if [[ -z "$HELIX_CORRELATION_PAYLOAD" ]]; then
237+
: # Skip XUnitLogChecker execution
238+
elif [[ -z "$__IsXUnitLogCheckerSupported" ]]; then
237239
echo "The '__IsXUnitLogCheckerSupported' env var is not set."
238240
elif [[ "$__IsXUnitLogCheckerSupported" != "1" ]]; then
239241
echo "XUnitLogChecker not supported for this test case. Skipping."

0 commit comments

Comments
 (0)