Skip to content

Commit

Permalink
skip path test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
natasha41575 committed Apr 11, 2022
1 parent 6ccb493 commit 4fdbebf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kyaml/fn/runtime/container/container_test.go
Expand Up @@ -7,6 +7,7 @@ import (
"bytes"
"fmt"
"os"
"runtime"
"testing"

"github.com/stretchr/testify/assert"
Expand All @@ -23,6 +24,7 @@ func TestFilter_setupExec(t *testing.T) {
expectedArgs []string
containerSpec runtimeutil.ContainerSpec
UIDGID string
skipOnWindows bool
}{
{
name: "command",
Expand Down Expand Up @@ -68,7 +70,8 @@ metadata:
},

{
name: "storage_mounts",
name: "storage_mounts",
skipOnWindows: true, // the fieldpaths are different on Windows
functionConfig: `apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -122,6 +125,9 @@ metadata:
for i := range tests {
tt := tests[i]
t.Run(tt.name, func(t *testing.T) {
if tt.skipOnWindows && runtime.GOOS == "windows" {
t.SkipNow()
}
cfg, err := yaml.Parse(tt.functionConfig)
if !assert.NoError(t, err) {
t.FailNow()
Expand Down

0 comments on commit 4fdbebf

Please sign in to comment.