Skip to content

Commit

Permalink
add NULL to fix pipeline issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectsByJackHe committed Nov 29, 2023
1 parent 96aa0e3 commit e7848f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/secnetperf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This script assumes the latest MsQuic commit is built and downloaded as artifact
#>

param (
[ValidateSet("", "Basic.Light", "Datapath.Light", "Datapath.Verbose", "Stacks.Light", "Stacks.Verbose", "RPS.Light", "RPS.Verbose", "Performance.Light", "Basic.Verbose", "Performance.Light", "Performance.Verbose", "Full.Light", "Full.Verbose", "SpinQuic.Light", "SpinQuicWarnings.Light")]
[ValidateSet("", "NULL", "Basic.Light", "Datapath.Light", "Datapath.Verbose", "Stacks.Light", "Stacks.Verbose", "RPS.Light", "RPS.Verbose", "Performance.Light", "Basic.Verbose", "Performance.Light", "Performance.Verbose", "Full.Light", "Full.Verbose", "SpinQuic.Light", "SpinQuicWarnings.Light")]
[string]$LogProfile = ""
)

Expand Down Expand Up @@ -50,7 +50,7 @@ Invoke-Command -Session $Session -ScriptBlock {

# Logging to collect quic traces while running the tests.

if ($LogProfile -ne "") {
if ($LogProfile -ne "" -and $LogProfile -ne "NULL") {
Write-Output "Starting logging with log profile: $LogProfile..."
.\scripts\log.ps1 -Start -Profile $LogProfile
}
Expand Down Expand Up @@ -83,7 +83,7 @@ for ($i = 0; $i -lt $commands.Count; $i++) {
Invoke-Expression $commands[$i]
}

if ($LogProfile -ne "") {
if ($LogProfile -ne "" -and $LogProfile -ne "NULL") {
Write-Output "Stopping logging..."
.\scripts\log.ps1 -Stop -OutputPath .\artifacts\logs\quic
}
Expand Down

0 comments on commit e7848f9

Please sign in to comment.