[release/v7.6.1] Fix the PSNativeCommandArgumentPassing test (#27179)

This commit is contained in:
Aditya Patwardhan
2026-04-02 18:17:27 -07:00
committed by GitHub
parent 309fb4e2d3
commit 0ef9498fcc
@@ -5,12 +5,7 @@ param()
Describe "Behavior is specific for each platform" -tags "CI" {
It "PSNativeCommandArgumentPassing is set to 'Windows' on Windows systems" -skip:(-not $IsWindows) {
if ([Version]::TryParse($PSVersiontable.PSVersion.ToString(), [ref]$null)) {
$PSNativeCommandArgumentPassing | Should -BeExactly "Legacy"
}
else {
$PSNativeCommandArgumentPassing | Should -BeExactly "Windows"
}
$PSNativeCommandArgumentPassing | Should -BeExactly "Windows"
}
It "PSNativeCommandArgumentPassing is set to 'Standard' on non-Windows systems" -skip:($IsWindows) {
$PSNativeCommandArgumentPassing | Should -Be "Standard"