Hide expected error for negative test on windows for script extension (#19929)

This commit is contained in:
Travis Plunk
2023-07-17 09:32:03 -07:00
committed by GitHub
parent a064d81b1c
commit 3ce65f39e0
+1 -1
View File
@@ -174,7 +174,7 @@ Describe "ConsoleHost unit tests" -tags "Feature" {
It "-File should fail for script without .ps1 extension" -Skip:(!$IsWindows) {
$Filename = 'test.xxx'
Set-Content -Path $testdrive/$Filename -Value "'hello'"
& $powershell -NoProfile -File $testdrive/$Filename > $null
& $powershell -NoProfile -File $testdrive/$Filename 2>&1 $null
$LASTEXITCODE | Should -Be 64
}