mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Use -noprofile for powershell.exe tests
This commit is contained in:
1 parent
a5e66b7d29
commit
33aaa8c6f9
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user