mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Avoid testing in memory for Windows tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user