1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-11-18 19:04:07 +01:00

chore: faster it test by not sending too much context to docker daemon

This commit is contained in:
Carlos Alexandro Becker 2018-05-16 20:36:03 -03:00
parent 8faa8e2e62
commit 03334d1cf3
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

@ -39,14 +39,12 @@ func accept(t *testing.T, name, conf, format, dockerfile string) {
bts, _ := exec.Command("pwd").CombinedOutput()
t.Log(string(bts))
cmd := exec.Command(
"docker",
"build",
"-f",
filepath.Join("./testdata", dockerfile),
"--build-arg",
"package="+filepath.Join("tmp", packageName),
"./testdata",
"docker", "build",
"-f", dockerfile,
"--build-arg", "package="+filepath.Join("tmp", packageName),
".",
)
cmd.Dir = "./testdata"
t.Log("will exec:", cmd.Args)
bts, err = cmd.CombinedOutput()
t.Log("output:", string(bts))