Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
53ae84a49c
commit
89219a38fc
@ -241,6 +241,15 @@ func (c CLIWrapper) runWithInput(args []string, input io.Reader) (output string,
|
||||
cmd.Stdin = input
|
||||
return cmd.CombinedOutput()
|
||||
}()
|
||||
|
||||
if c.Debug {
|
||||
if gotErr != nil {
|
||||
c.t.Logf("+++ ERROR output: %s - %s", gotOut, gotErr)
|
||||
} else {
|
||||
c.t.Logf("+++ output: %s", gotOut)
|
||||
}
|
||||
}
|
||||
|
||||
ok = c.assertErrorFn(c.t, gotErr, string(gotOut))
|
||||
return strings.TrimSpace(string(gotOut)), ok
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user