Skip to content

Commit

Permalink
test: modify the env test
Browse files Browse the repository at this point in the history
Signed-off-by: Lang Chi <21860405@zju.edu.cn>
  • Loading branch information
lang710 authored and allencloud committed Jun 2, 2019
1 parent 29753d7 commit d2342d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/cli_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit d2342d1

Please sign in to comment.