Skip to content

Commit 89058c6

Browse files
authored
[Eng] Fix dotnet test not working (#28563)
1 parent 8b8f77a commit 89058c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.azure-pipelines/PipelineSteps/test-steps.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ $buildArgs = "/p:Configuration=$Configuration;TestFramework=$TestFramework"
3636

3737
if ($IsLinux) {
3838
# Applying various parallelism/heap restriction behaviors to prevent OOM issues on Ubuntu 24.04
39-
Write-Host -ForegroundColor Yellow "Detected Linux agent applying memory tuning for tests"
39+
Write-Host -ForegroundColor Yellow "Detected Linux agent - applying memory tuning for tests"
4040
$env:DOTNET_gcServer = "0"
4141
$env:DOTNET_gcHeapCount = "2"
42-
$buildArgs += ";RunConfiguration.MaxCpuCount=2"
4342
}
4443

4544
dotnet msbuild $buildProjPath /t:Test $buildArgs
@@ -86,4 +85,4 @@ if ($FailedModuleList.Length -ne 0)
8685
}
8786

8887
Set-Location $currentPath
89-
Write-Host -ForegroundColor DarkGreen "-------------------- End checking test status ... --------------------`n`n`n`n`n"
88+
Write-Host -ForegroundColor DarkGreen "-------------------- End checking test status ... --------------------`n`n`n`n`n"

0 commit comments

Comments
 (0)