Skip to content

Commit dadc368

Browse files
Add channel check to windows tests
1 parent 4dbec0b commit dadc368

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/container.tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,10 @@ Describe "Windows Containers" -Tags 'Behavior', 'Windows' {
645645
$Channel
646646
)
647647

648+
if ($Channel -ne 'preview') {
649+
Set-ItResult -Skipped -Because "Test is not applicable to $Channel"
650+
}
651+
648652
$psDistChannel = Get-PowerShellDistibutionChannel -TestContext $testContext -Name $Name
649653
$psDistChannel | Should -BeLike "PSDocker-*"
650654
}

0 commit comments

Comments
 (0)