1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

test: flag.Parse

This commit is contained in:
Carlos Alexandro Becker 2017-12-26 15:24:19 -02:00
parent 76b30d6f40
commit 1d117b4b1a
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -20,7 +20,8 @@ var it = flag.Bool("it", false, "push images to docker hub")
var registry = "localhost:5000/"
func TestMain(m *testing.M) {
if !*it {
flag.Parse()
if *it {
registry = "docker.io/"
}
os.Exit(m.Run())