Use -noprofile for powershell.exe tests

This commit is contained in:
Andrew Schwartzmeyer
2016-04-21 15:41:52 -07:00
parent a5e66b7d29
commit 33aaa8c6f9
+2 -2
View File
@@ -92,7 +92,7 @@ set-psbreakpoint -command foo
}
It "Should throw Exception when missing mandatory parameter" {
$output = & $ps -noninteractive -command "sbp -line 1"
$output = & $ps -noprofile -noninteractive -command "sbp -line 1"
[system.string]::Join(" ", $output) | Should Match "MissingMandatoryParameter,Microsoft.PowerShell.Commands.SetPSBreakpointCommand"
}
@@ -159,7 +159,7 @@ set-psbreakpoint -command foo
}
It "Remove implicit script from 'set-psbreakpoint -script'" {
& $ps $scriptFileNameBug
& $ps -noprofile $scriptFileNameBug
$breakpoint = Get-PSBreakpoint -Script $scriptFileNameBug
$breakpoint | Should BeNullOrEmpty