Skip to content

Commit aadbbf9

Browse files
Skip policy conformance tests when run outside Bazel
1 parent 2628ca8 commit aadbbf9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

conformance/policy/policy_conformance_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package policy_conformance_test
1717
import (
1818
"flag"
1919
"fmt"
20-
"log"
2120
"os"
2221
"path/filepath"
2322
"strings"
@@ -175,7 +174,7 @@ func k8sParserOpts() policy.ParserOption {
175174
func TestConformance(t *testing.T) {
176175
absTestdataDir, err := rlocation(testdataDir)
177176
if err != nil {
178-
log.Fatalf("rlocation(%q) failed: %v", testdataDir, err)
177+
t.Skipf("rlocation(%q) failed: %v", testdataDir, err)
179178
}
180179

181180
testDirs := ([]string)(tests)

0 commit comments

Comments
 (0)