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:
parent
8faa8e2e62
commit
03334d1cf3
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user