(args []string)
| 46 | } |
| 47 | |
| 48 | func (self *Shell) RunCommandExpectError(args []string) *Shell { |
| 49 | output, err := self.runCommandWithOutput(args) |
| 50 | if err == nil { |
| 51 | self.fail(fmt.Sprintf("Expected error running shell command: %v\n%s", args, output)) |
| 52 | } |
| 53 | |
| 54 | return self |
| 55 | } |
| 56 | |
| 57 | func (self *Shell) runCommandWithOutput(args []string) (string, error) { |
| 58 | return self.runCommandWithOutputAndEnv(args, []string{}) |
no test coverage detected