skip tests not relevant for windows

pull/21449/head
Predrag Rogic 2025-08-13 00:27:56 +01:00 committed by Medya Ghazizadeh
parent b0db07d450
commit a931f4e73e
1 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,7 @@ package util
import (
"os"
"os/user"
"runtime"
"syscall"
"testing"
@ -80,6 +81,10 @@ func TestParseKubernetesVersion(t *testing.T) {
}
func TestChownR(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("skipping on windows")
}
testDir := t.TempDir()
if _, err := os.Create(testDir + "/TestChownR"); err != nil {
return
@ -123,6 +128,10 @@ func TestChownR(t *testing.T) {
}
func TestMaybeChownDirRecursiveToMinikubeUser(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("skipping on windows")
}
testDir := t.TempDir()
if _, err := os.Create(testDir + "/TestChownR"); nil != err {
return