File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ Describe "-ReportSummary switch" {
604
604
}
605
605
606
606
It " prints the correct report summary using the -NoReportSummary switch" {
607
- $result = & $pwshExe - Command " Import-Module '$pssaPath '; Invoke-ScriptAnalyzer -ScriptDefinition gci -ReportSummary"
607
+ $result = & $pwshExe - NoProfile - Command " Import-Module '$pssaPath '; Invoke-ScriptAnalyzer -ScriptDefinition gci -ReportSummary"
608
608
609
609
" $result " | Should - BeLike $reportSummaryFor1Warning
610
610
}
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ function Test-ScriptAnalyzer
351
351
}
352
352
else {
353
353
$powershell = (Get-Process - id $PID ).MainModule.FileName
354
- & ${powershell} - Command $scriptBlock
354
+ & ${powershell} - NoProfile - Command $scriptBlock
355
355
}
356
356
}
357
357
finally {
You can’t perform that action at this time.
0 commit comments