From b3da7d029e5e78dd13c97ed56f2e518edc0f475d Mon Sep 17 00:00:00 2001 From: Lang Chi <21860405@zju.edu.cn> Date: Wed, 29 May 2019 11:04:05 +0800 Subject: [PATCH] test: modify the env test Signed-off-by: Lang Chi <21860405@zju.edu.cn> --- test/cli_create_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/cli_create_test.go b/test/cli_create_test.go index dc5f2b556..eb794cd6f 100644 --- a/test/cli_create_test.go +++ b/test/cli_create_test.go @@ -305,7 +305,7 @@ func (suite *PouchCreateSuite) TestCreateWithEnv(c *check.C) { env3 := "TEST3" // should not in container's real env env4 := "TEST4=a b" // valid env5 := "TEST5=a=b" // valid - res := command.PouchRun("run", "-d", + res := command.PouchRun("create", "--name", name, "-e", env1, "-e", env2, @@ -339,6 +339,9 @@ func (suite *PouchCreateSuite) TestCreateWithEnv(c *check.C) { } // check if these envs are in the real container envs + res = command.PouchRun("start", name) + res.Assert(c, icmd.Success) + ret := command.PouchRun("exec", name, "env") envs = ret.Stdout()