This is an automated email from the ASF dual-hosted git repository.
paulirwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
The following commit(s) were added to refs/heads/master by this push:
new 4c19e5ddc Reduce Powershell build output noise (#1136)
4c19e5ddc is described below
commit 4c19e5ddcfe37bec65df3cab0c7f47e02e7111b4
Author: Paul Irwin <[email protected]>
AuthorDate: Sat Mar 8 18:02:15 2025 -0700
Reduce Powershell build output noise (#1136)
---
.build/azure-templates/run-tests-on-os.yml | 4 ++--
.build/runbuild.ps1 | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.build/azure-templates/run-tests-on-os.yml
b/.build/azure-templates/run-tests-on-os.yml
index 18df1945f..4664efb3b 100644
--- a/.build/azure-templates/run-tests-on-os.yml
+++ b/.build/azure-templates/run-tests-on-os.yml
@@ -205,7 +205,7 @@ steps:
$testResultDirectory =
"$testResultsArtifactDirectory/$testOSName/$framework/$testPlatform/$testName"
if (!(Test-Path "$testResultDirectory")) {
- New-Item "$testResultDirectory" -ItemType Directory -Force
+ New-Item "$testResultDirectory" -ItemType Directory -Force |
Out-Null
}
if ($isNightly -ne 'true' -and $isWeekly -ne 'true') {
@@ -247,7 +247,7 @@ steps:
Start-Sleep -Milliseconds 500
# Execute the jobs in parallel
- Start-Job -Name "$testName,$framework,$testPlatform"
-ScriptBlock $scriptBlock -ArgumentList $testExpression
+ Start-Job -Name "$testName,$framework,$testPlatform"
-ScriptBlock $scriptBlock -ArgumentList $testExpression | Out-Null
}
}
}
diff --git a/.build/runbuild.ps1 b/.build/runbuild.ps1
index cd1668cd4..faa26d584 100644
--- a/.build/runbuild.ps1
+++ b/.build/runbuild.ps1
@@ -223,7 +223,7 @@ task Publish -depends Compile -description "This task uses
dotnet publish to pac
}
# Execute the jobs in parallel
- Start-Job -Name "$framework" -ScriptBlock $scriptBlock
-ArgumentList @($expression)
+ Start-Job -Name "$framework" -ScriptBlock $scriptBlock
-ArgumentList @($expression) | Out-Null
}
# Wait for it all to complete
@@ -343,7 +343,7 @@ task Test -depends CheckSDK, UpdateLocalSDKVersion, Restore
-description "This t
}
# Execute the jobs in parallel
- Start-Job -Name "$testName,$framework" -ScriptBlock $scriptBlock
-ArgumentList $testExpression,$testResultDirectory
+ Start-Job -Name "$testName,$framework" -ScriptBlock $scriptBlock
-ArgumentList $testExpression,$testResultDirectory | Out-Null
#Invoke-Expression $testExpression
## fail the build on negative exit codes (NUnit errors - if
positive it is a test count or, if 1, it could be a dotnet error)
@@ -749,14 +749,14 @@ function Delete-Added-File([string]$path) {
function Ensure-Directory-Exists([string] $path) {
if (!(Test-Path $path)) {
- New-Item $path -ItemType Directory
+ New-Item $path -ItemType Directory | Out-Null
}
}
function New-TemporaryDirectory {
$parent = [System.IO.Path]::GetTempPath()
[string] $name = [System.Guid]::NewGuid()
- New-Item -ItemType Directory -Path (Join-Path $parent $name)
+ New-Item -ItemType Directory -Path (Join-Path $parent $name) | Out-Null
}
function Normalize-FileSystemSlashes([string]$path) {