with change of positional parameter to powershell.exe from -command to -file, need to update some feature tests (#4058)

This commit is contained in:
Steve Lee
2017-06-21 18:47:56 -07:00
committed by Travis Plunk
parent da8dd28942
commit 18cddc99eb
2 changed files with 3 additions and 3 deletions
@@ -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))