From 3ad2f8d851fa7d262f8666ae9bae653259fc30eb Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Fri, 10 Dec 2021 15:12:00 -0800 Subject: [PATCH] skip checking mode on macOS --- test/integration/mount_start_test.go | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/test/integration/mount_start_test.go b/test/integration/mount_start_test.go index 8fe323bdd728..76162dfe19a4 100644 --- a/test/integration/mount_start_test.go +++ b/test/integration/mount_start_test.go @@ -23,6 +23,7 @@ import ( "context" "fmt" "os/exec" + "runtime" "strings" "testing" ) @@ -108,16 +109,19 @@ func validateMount(ctx context.Context, t *testing.T, profile string) { return } - args = sshArgs - args = append(args, "stat", "--format", "'%a'", "/minikube-host") - rr, err = Run(t, exec.CommandContext(ctx, Target(), args...)) - if err != nil { - t.Fatalf("failed to get directory mode: %v", err) - } + // skipping macOS due to https://github.com/kubernetes/minikube/issues/13070 + if runtime.GOOS != "darwin" { + args = sshArgs + args = append(args, "stat", "--format", "'%a'", "/minikube-host") + rr, err = Run(t, exec.CommandContext(ctx, Target(), args...)) + if err != nil { + t.Fatalf("failed to get directory mode: %v", err) + } - const want = "777" - if !strings.Contains(rr.Output(), want) { - t.Errorf("wanted mode to be %q; got: %q", want, rr.Output()) + const want = "777" + if !strings.Contains(rr.Output(), want) { + t.Errorf("wanted mode to be %q; got: %q", want, rr.Output()) + } } // We can't get the mount details with Hyper-V