RunCommand runs a command on the GCE instance and returns the command result.
(cmd string)
| 140 | |
| 141 | // RunCommand runs a command on the GCE instance and returns the command result. |
| 142 | func (ins *Instance) RunCommand(cmd string) ssh.Result { |
| 143 | if ins.ExternalIP == "" { |
| 144 | ins.populateExternalIP() |
| 145 | } |
| 146 | return ssh.Run(cmd, ins.ExternalIP, ins.SshUser, ins.SshKey) |
| 147 | } |
| 148 | |
| 149 | // RunCommand runs a command on the GCE instance and returns the command result, and fails the test when the command failed. |
| 150 | func (ins *Instance) RunCommandOrFail(cmd string) ssh.Result { |
no test coverage detected