(m *testing.M)
| 13 | var testFileCachePath string |
| 14 | |
| 15 | func TestMain(m *testing.M) { |
| 16 | setup() |
| 17 | code := m.Run() |
| 18 | err := teardown() |
| 19 | if code == 0 && err != nil { |
| 20 | code = 42 |
| 21 | } |
| 22 | os.Exit(code) |
| 23 | } |
| 24 | |
| 25 | func setup() { |
| 26 | // get current working directory |