Improve error reporting a little in ingress e2e.

Also add Output() to the util/exec Cmd interface.
This commit is contained in:
Brendan Burns
2016-01-06 14:29:57 -08:00
parent 8f4d801368
commit 07b3ab720d
5 changed files with 53 additions and 16 deletions

View File

@@ -75,6 +75,10 @@ func (fake *FakeCmd) CombinedOutput() ([]byte, error) {
return fake.CombinedOutputScript[i]()
}
func (fake *FakeCmd) Output() ([]byte, error) {
return nil, fmt.Errorf("unimplemented")
}
// A simple fake ExitError type.
type FakeExitError struct {
Status int