Skip to content

Commit

Permalink
all: fix js/android test failures
Browse files Browse the repository at this point in the history
Fixes golang/go#48078

Change-Id: I8669c07e1536b9ce0f0deac0b876d21adf57c5fb
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/346449
Trust: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
  • Loading branch information
stanislavkononiuk committed Aug 31, 2021
1 parent 88e55c2 commit 078b658
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lint_test.go
Expand Up @@ -7,6 +7,7 @@ package main
import (
"io/ioutil"
"path/filepath"
"runtime"
"strings"
"testing"

Expand All @@ -15,6 +16,13 @@ import (
)

func TestLintReports(t *testing.T) {
if runtime.GOOS == "js" {
t.Skipf("wasm builder does not have network access")
}
if runtime.GOOS == "android" {
t.Skipf("android builder does not have access to reports/")
}

reports, err := ioutil.ReadDir("reports")
if err != nil {
t.Fatalf("unable to read reports/: %s", err)
Expand Down

0 comments on commit 078b658

Please sign in to comment.