build: add test tag for tests

This commit is contained in:
lash 2018-12-02 12:50:09 +01:00
parent 1e0244d56d
commit f44da20911

View file

@ -334,7 +334,7 @@ func doTest(cmdline []string) {
// Test a single package at a time. CI builders are slow
// and some tests run into timeouts under load.
gotest := goTool("test", buildFlags(env)...)
gotest.Args = append(gotest.Args, "-p", "1", "-timeout", "5m")
gotest.Args = append(gotest.Args, "-p", "1", "-timeout", "5m", "-tags", "test")
if *coverage {
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
}