From 96e710fa1e805c7dc110174350d49bdd9a3828ca Mon Sep 17 00:00:00 2001 From: clr2of8 Date: Tue, 10 Oct 2023 13:34:53 -0600 Subject: [PATCH] args array and pause runner option --- Public/Invoke-AtomicTest.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Public/Invoke-AtomicTest.ps1 b/Public/Invoke-AtomicTest.ps1 index 5971b02..2467f13 100644 --- a/Public/Invoke-AtomicTest.ps1 +++ b/Public/Invoke-AtomicTest.ps1 @@ -207,7 +207,7 @@ function Invoke-AtomicTest { $ShortTestNumbers = $AtomicTechniqueParams[-1] } - if ($TestNumbers -eq $null -and $ShortTestNumbers -ne $null) { + if ($null -eq $TestNumbers -and $null -ne $ShortTestNumbers) { $TestNumbers = $ShortTestNumbers -split ',' } @@ -222,15 +222,15 @@ function Invoke-AtomicTest { $commandLine = "$commandLine -ShowDetailsBrief $ShowDetailsBrief" } - if ($TestNumbers -ne $null) { + if ($null -ne $TestNumbers) { $commandLine = "$commandLine -TestNumbers $TestNumbers" } - if ($TestNames -ne $null) { + if ($null -ne $TestNames) { $commandLine = "$commandLine -TestNames $TestNames" } - if ($TestGuids -ne $null) { + if ($null -ne $TestGuids) { $commandLine = "$commandLine -TestGuids $TestGuids" } @@ -285,7 +285,7 @@ function Invoke-AtomicTest { $commandLine = "$commandLine -KeepStdOutStdErrFiles $KeepStdOutStdErrFiles" } - if ($LoggingModule -ne $null) { + if ($null -ne $LoggingModule) { $commandLine = "$commandLine -LoggingModule $LoggingModule" } @@ -368,7 +368,7 @@ function Invoke-AtomicTest { $testCount++ - if (($ShowDetails -or $ShowDetailsBrief) -and -not $anyOS) { + if (-not $anyOS) { if ( -not $(Platform-IncludesCloud) -and -Not $test.supported_platforms.Contains($executionPlatform) ) { Write-Verbose -Message "Unable to run non-$executionPlatform tests" continue