skip mount test on windows

pull/8265/head
Medya Gh 2020-05-25 21:03:44 -07:00
parent 8ef8cad40e
commit b773fb4a4b
No known key found for this signature in database
GPG Key ID: 7CF7792C6DF3245C
1 changed files with 7 additions and 3 deletions

View File

@ -51,6 +51,10 @@ func validateMountCmd(ctx context.Context, t *testing.T, profile string) { //nol
t.Skip("skipping: mount broken on hyperv: https://github.com/kubernetes/minikube/issues/5029")
}
if runtime.GOOS == "windows" {
t.Skip("skipping: mount broken on windows: https://github.com/kubernetes/minikube/issues/8271")
}
tempDir, err := ioutil.TempDir("", "mounttest")
defer func() { //clean up tempdir
err := os.RemoveAll(tempDir)
@ -62,14 +66,14 @@ func validateMountCmd(ctx context.Context, t *testing.T, profile string) { //nol
t.Fatalf("Unexpected error while creating tempDir: %v", err)
}
ctx, cancel := context.WithTimeout(ctx, Minutes(10))
mctx, cancel := context.WithTimeout(ctx, Minutes(10))
args := []string{"mount", "-p", profile, fmt.Sprintf("%s:%s", tempDir, guestMount), "--alsologtostderr", "-v=1"}
var ss *StartSession
if runtime.GOOS == "windows" {
ss, err = Start(t, exec.CommandContext(ctx, Target(), args...), true)
ss, err = Start(t, exec.CommandContext(mctx, Target(), args...), true)
} else {
ss, err = Start(t, exec.CommandContext(ctx, Target(), args...))
ss, err = Start(t, exec.CommandContext(mctx, Target(), args...))
}
if err != nil {
t.Fatalf("%v failed: %v", args, err)