From ed492661bbcf2e93e8d58148c3dae9913f6d81da Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Tue, 5 Nov 2013 19:29:55 -0600 Subject: [PATCH] test: put each arg in a separate string Each arg to docker run should be placed in a separate string. Otherwise, when starting the command via exec.Cmd, the command is interpreted as "echo test", which can't be found. Upstream-commit: 30ea0bebce340dfc257b5b45835234cb921f3a48 Component: engine --- components/engine/integration/server_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/integration/server_test.go b/components/engine/integration/server_test.go index 6c61bedafb..b19c2e1a91 100644 --- a/components/engine/integration/server_test.go +++ b/components/engine/integration/server_test.go @@ -109,7 +109,7 @@ func TestCreateRmVolumes(t *testing.T) { srv := mkServerFromEngine(eng, t) defer mkRuntimeFromEngine(eng, t).Nuke() - config, hostConfig, _, err := docker.ParseRun([]string{"-v", "/srv", unitTestImageID, "echo test"}, nil) + config, hostConfig, _, err := docker.ParseRun([]string{"-v", "/srv", unitTestImageID, "echo", "test"}, nil) if err != nil { t.Fatal(err) } @@ -240,7 +240,7 @@ func TestRmi(t *testing.T) { t.Fatal(err) } - config, hostConfig, _, err := docker.ParseRun([]string{unitTestImageID, "echo test"}, nil) + config, hostConfig, _, err := docker.ParseRun([]string{unitTestImageID, "echo", "test"}, nil) if err != nil { t.Fatal(err) }