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:
parent
76b30d6f40
commit
1d117b4b1a
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user