cleanup: remove startCommand function, only used once, and

unecessary abstraction.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
Jessica Frazelle 2014-12-03 17:42:25 -08:00
parent 7c7026bd22
commit 7ba9a18ade
2 changed files with 1 additions and 8 deletions

View file

@ -50,7 +50,7 @@ func TestAttachMultipleAndRestart(t *testing.T) {
t.Fatal(err)
}
if _, err := startCommand(c); err != nil {
if err := c.Start(); err != nil {
t.Fatal(err)
}

View file

@ -95,13 +95,6 @@ func runCommand(cmd *exec.Cmd) (exitCode int, err error) {
return
}
func startCommand(cmd *exec.Cmd) (exitCode int, err error) {
exitCode = 0
err = cmd.Start()
exitCode = processExitCode(err)
return
}
func logDone(message string) {
fmt.Printf("[PASSED]: %s\n", message)
}