From 262a2d9288226429f8985cd84e1c0482208c208a Mon Sep 17 00:00:00 2001 From: Francesc Campoy Date: Mon, 26 Jul 2021 16:14:46 -0700 Subject: [PATCH] Avoid testing in memory for Windows tests --- kyaml/kio/pkgio_reader_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kyaml/kio/pkgio_reader_test.go b/kyaml/kio/pkgio_reader_test.go index 3af6fcfa3..a6df5ec10 100644 --- a/kyaml/kio/pkgio_reader_test.go +++ b/kyaml/kio/pkgio_reader_test.go @@ -5,6 +5,7 @@ package kio_test import ( "path/filepath" + "runtime" "strings" "testing" @@ -535,6 +536,11 @@ func testOnDiskAndOnMem(t *testing.T, files []mockFile, f func(t *testing.T, pat f(t, s.Root, nil) }) + // TODO: Once fsnode supports Windows, we should also run the tests below. + if runtime.GOOS == "windows" { + return + } + t.Run("on_mem", func(t *testing.T) { fs := filesys.MakeFsInMemory() for _, file := range files {