From f6917c22914b40f19b6ae0d59e909371d280dbc4 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 13 May 2019 21:25:08 +0100 Subject: Define flags in each test, so they arent erroneously picked up and used by cmds as they were defined in global package space --- preproc/wipesides_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'preproc/wipesides_test.go') diff --git a/preproc/wipesides_test.go b/preproc/wipesides_test.go index f66f39b..d5464e0 100644 --- a/preproc/wipesides_test.go +++ b/preproc/wipesides_test.go @@ -4,6 +4,7 @@ package preproc // TODO: test non integral img version import ( + "flag" "fmt" "image" "image/png" @@ -12,6 +13,7 @@ import ( ) func TestWipeSides(t *testing.T) { + var update = flag.Bool("updatewipe", false, "update golden files") cases := []struct { name string orig string -- cgit v1.2.1-24-ge1ad