Skip to content

Commit bf5c9d9

Browse files
committed
disable tests for windows due to no compiler toolchain
1 parent 516d13a commit bf5c9d9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

api/internal/plugins/compiler/compiler_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ import (
1010
. "sigs.k8s.io/kustomize/api/internal/plugins/compiler"
1111
"sigs.k8s.io/kustomize/api/internal/plugins/utils"
1212
"sigs.k8s.io/kustomize/kyaml/filesys"
13+
"sigs.k8s.io/kustomize/kyaml/testutil"
1314
)
1415

1516
// Regression coverage over compiler behavior.
1617
func TestCompiler(t *testing.T) {
18+
// Skip due to no compiler toolchain on Windows
19+
testutil.SkipWindows(t)
1720
srcRoot, err := utils.DeterminePluginSrcRoot(filesys.MakeFsOnDisk())
1821
if err != nil {
1922
t.Error(err)

api/internal/plugins/loader/loader_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
valtest_test "sigs.k8s.io/kustomize/api/testutils/valtest"
1616
"sigs.k8s.io/kustomize/api/types"
1717
"sigs.k8s.io/kustomize/kyaml/filesys"
18+
"sigs.k8s.io/kustomize/kyaml/testutil"
1819
)
1920

2021
const (
@@ -45,6 +46,8 @@ port: "12345"
4546
)
4647

4748
func TestLoader(t *testing.T) {
49+
// Skip due to no compiler toolchain on Windows
50+
testutil.SkipWindows(t)
4851
th := kusttest_test.MakeEnhancedHarness(t).
4952
BuildGoPlugin("builtin", "", "SecretGenerator").
5053
BuildGoPlugin("someteam.example.com", "v1", "SomeServiceGenerator")

0 commit comments

Comments
 (0)