Skip to content

Commit

Permalink
benchstat: skip test on GOOS=android
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
eliasnaur committed Mar 6, 2019
1 parent 844a5f5 commit 151b638
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions benchstat/sort_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package benchstat
import (
"io/ioutil"
"log"
"runtime"
"sort"
"testing"
)
Expand Down Expand Up @@ -71,6 +72,9 @@ func deltaSortTest(t *testing.T, sampleTable *Table) {
}

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 {
Expand All @@ -93,6 +97,9 @@ func TestCompareCollection(t *testing.T) {
}

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 {
Expand Down

0 comments on commit 151b638

Please sign in to comment.