Run a command with additional environment variables set
(args []string, env []string)
| 37 | |
| 38 | // Run a command with additional environment variables set |
| 39 | func (self *Shell) RunCommandWithEnv(args []string, env []string) *Shell { |
| 40 | output, err := self.runCommandWithOutputAndEnv(args, env) |
| 41 | if err != nil { |
| 42 | self.fail(fmt.Sprintf("error running command: %v\n%s", args, output)) |
| 43 | } |
| 44 | |
| 45 | return self |
| 46 | } |
| 47 | |
| 48 | func (self *Shell) RunCommandExpectError(args []string) *Shell { |
| 49 | output, err := self.runCommandWithOutput(args) |
no test coverage detected