Merge pull request #12325 from hqhq/hq_fix_build_test

fix build test by adding --no-cache
This commit is contained in:
Michael Crosby 2015-04-13 10:57:19 -07:00
commit 0e46cc9be4
1 changed files with 1 additions and 1 deletions

View File

@ -5555,7 +5555,7 @@ func TestBuildResourceConstraintsAreUsed(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
cmd := exec.Command(dockerBinary, "build", "--rm=false", "--memory=64m", "--memory-swap=-1", "--cpuset-cpus=0", "--cpu-shares=100", "-t", name, ".") cmd := exec.Command(dockerBinary, "build", "--no-cache", "--rm=false", "--memory=64m", "--memory-swap=-1", "--cpuset-cpus=0", "--cpu-shares=100", "-t", name, ".")
cmd.Dir = ctx.Dir cmd.Dir = ctx.Dir
out, _, err := runCommandWithOutput(cmd) out, _, err := runCommandWithOutput(cmd)