mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
with change of positional parameter to powershell.exe from -command to -file, need to update some feature tests (#4058)
This commit is contained in:
@@ -38,12 +38,12 @@ Describe "Configuration file locations" -tags "CI","Slow" {
|
||||
}
|
||||
|
||||
It @ItArgs "Profile location should be correct" {
|
||||
& $powershell -noprofile `$PROFILE | Should Be $expectedProfile
|
||||
& $powershell -noprofile -c `$PROFILE | Should Be $expectedProfile
|
||||
}
|
||||
|
||||
It @ItArgs "PSModulePath should contain the correct path" {
|
||||
$env:PSModulePath = ""
|
||||
$actual = & $powershell -noprofile `$env:PSModulePath
|
||||
$actual = & $powershell -noprofile -c `$env:PSModulePath
|
||||
$actual | Should Match ([regex]::Escape($expectedModule))
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
It "write-Host works with '<Name>' switch" -TestCases:$testData -Pending:$IsOSX {
|
||||
param($Command, $returnCount, $returnValue)
|
||||
|
||||
[array]$result = & $powershell -noprofile $Command
|
||||
[array]$result = & $powershell -noprofile -c $Command
|
||||
|
||||
$result.Count | Should Be $returnCount
|
||||
foreach ($i in 0..($returnCount - 1))
|
||||
|
||||
Reference in New Issue
Block a user