cleanup: remove startCommand function, only used once, and

unecessary abstraction.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
Upstream-commit: 7ba9a18ade7393d942d995d34a92d757ef4af0b7
Component: engine
This commit is contained in:
Jessica Frazelle
2014-12-03 17:42:25 -08:00
parent 482d9b0df3
commit 4cd694cddb
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)
}