mirror of
https://github.com/golang/go
synced 2024-11-18 18:04:46 -07:00
cmd/guru: skip the slow tests in short mode
Change-Id: I85c2de03087ae8bb8989763f255b362eeee5b397 Reviewed-on: https://go-review.googlesource.com/109556 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
This commit is contained in:
parent
ae8027637c
commit
8772326260
@ -210,6 +210,11 @@ func doQuery(out io.Writer, q *query, json bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGuru(t *testing.T) {
|
func TestGuru(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
// These tests are super slow.
|
||||||
|
// TODO: make a lighter version of the tests for short mode?
|
||||||
|
t.Skipf("skipping in short mode")
|
||||||
|
}
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "android":
|
case "android":
|
||||||
t.Skipf("skipping test on %q (no testdata dir)", runtime.GOOS)
|
t.Skipf("skipping test on %q (no testdata dir)", runtime.GOOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user