benchstat: skip test on GOOS=android
Change-Id: Ib5180af43a22168e57b94deec2cd37b980365ab0
Reviewed-on: https://go-review.googlesource.com/c/perf/+/165697
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/benchstat/sort_test.go b/benchstat/sort_test.go
index b975bea..878d3f4 100644
--- a/benchstat/sort_test.go
+++ b/benchstat/sort_test.go
@@ -7,6 +7,7 @@
import (
"io/ioutil"
"log"
+ "runtime"
"sort"
"testing"
)
@@ -71,6 +72,9 @@
}
func TestCompareCollection(t *testing.T) {
+ if runtime.GOOS == "android" {
+ t.Skipf("files not available on GOOS=%s", runtime.GOOS)
+ }
sampleCompareCollection := Collection{Alpha: 0.05, AddGeoMean: false, DeltaTest: UTest}
file1Data, err := ioutil.ReadFile(file1)
if err != nil {
@@ -93,6 +97,9 @@
}
func TestSingleCollection(t *testing.T) {
+ if runtime.GOOS == "android" {
+ t.Skipf("files not available on GOOS=%s", runtime.GOOS)
+ }
sampleCollection := Collection{Alpha: 0.05, AddGeoMean: false, DeltaTest: UTest}
file1Data, err1 := ioutil.ReadFile(file1)
if err1 != nil {