mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Use -noprofile for powershell.exe tests
This commit is contained in:
@@ -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