debian/patches/0001-fix-parsing-flags.patch
raw| 1 | Description: Initialize test so that test flags can be parsed during execution. |
| 2 | --- a/runner.go |
| 3 | +++ b/runner.go |
| 4 | @@ -30,6 +30,11 @@ |
| 5 | summaryPattern = regexp.MustCompile(`(?s)(\d+) passed.*?(\d+) failed`) |
| 6 | ) |
| 7 | |
| 8 | +var _ = func() bool { |
| 9 | + testing.Init() |
| 10 | + return true |
| 11 | +}() |
| 12 | + |
| 13 | func init() { |
| 14 | os.Setenv("GO_TEST", "true") |
| 15 |