Skip to content

Commit a0f64ab

Browse files
radicalCopilot
andcommitted
Gate GHA xunit config on GITHUB_ACTIONS environment variable
Ensures the no-parallelization config is only used when actually running on GitHub Actions, not when DisableTestParallelization is passed locally. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5fb3538 commit a0f64ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<XunitRunnerJson Condition="'$(XunitRunnerJson)' == '' and '$(PrepareForHelix)' == 'true'">$(RepoRoot)tests\helix\xunit.runner.json</XunitRunnerJson>
99
<!-- On resource-constrained CI runners (e.g. 2-core Windows), disable parallel test runs
1010
to prevent concurrent DCP processes from exhausting CPU. See #15832. -->
11-
<XunitRunnerJson Condition="'$(XunitRunnerJson)' == '' and '$(DisableTestParallelization)' == 'true'">$(RepoRoot)tests\github-actions\xunit.runner.json</XunitRunnerJson>
11+
<XunitRunnerJson Condition="'$(XunitRunnerJson)' == '' and '$(DisableTestParallelization)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'">$(RepoRoot)tests\github-actions\xunit.runner.json</XunitRunnerJson>
1212
<XunitRunnerJson Condition="'$(XunitRunnerJson)' == ''">$(RepositoryEngineeringDir)testing\xunit.runner.json</XunitRunnerJson>
1313

1414
<!-- Properties to allow control tests to run, useful for local command line runs -->

0 commit comments

Comments
 (0)