put non-interactive back

pull/8265/head
Medya Gh 2020-05-26 23:08:47 -07:00
parent dd6ab66e19
commit bf5aefb61d
No known key found for this signature in database
GPG Key ID: 7CF7792C6DF3245C
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func Run(t *testing.T, cmd *exec.Cmd, powershell ...bool) (*RunResult, error) {
if err != nil {
return &RunResult{}, errors.Wrapf(err, "lookup powershell")
}
args := append([]string{"-NoProfile"}, cmd.Args...)
args := append([]string{"-NoProfile", "-NonInteractive"}, cmd.Args...)
newCmd = exec.Command(psBin, args...)
newCmd.Stdout = cmd.Stdout
newCmd.Stderr = cmd.Stderr