Skip to content

Commit

Permalink
args array and pause runner option
Browse files Browse the repository at this point in the history
  • Loading branch information
clr2of8 committed Oct 10, 2023
1 parent 003dd7d commit 96e710f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Public/Invoke-AtomicTest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 ','
}

Expand All @@ -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"
}

Expand Down Expand Up @@ -285,7 +285,7 @@ function Invoke-AtomicTest {
$commandLine = "$commandLine -KeepStdOutStdErrFiles $KeepStdOutStdErrFiles"
}

if ($LoggingModule -ne $null) {
if ($null -ne $LoggingModule) {
$commandLine = "$commandLine -LoggingModule $LoggingModule"
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 96e710f

Please sign in to comment.