Skip to content

Commit 6fd621c

Browse files
committed
skip checking mode on macOS
1 parent f8028bc commit 6fd621c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Diff for: test/integration/mount_start_test.go

+12-9
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,19 @@ func validateMount(ctx context.Context, t *testing.T, profile string) {
108108
return
109109
}
110110

111-
args = sshArgs
112-
args = append(args, "stat", "--format", "'%a'", "/minikube-host")
113-
rr, err = Run(t, exec.CommandContext(ctx, Target(), args...))
114-
if err != nil {
115-
t.Fatalf("failed to get directory mode: %v", err)
116-
}
111+
// skipping macOS due to https://github.com/kubernetes/minikube/issues/13070
112+
if runtime.GOOS != "darwin" {
113+
args = sshArgs
114+
args = append(args, "stat", "--format", "'%a'", "/minikube-host")
115+
rr, err = Run(t, exec.CommandContext(ctx, Target(), args...))
116+
if err != nil {
117+
t.Fatalf("failed to get directory mode: %v", err)
118+
}
117119

118-
const want = "777"
119-
if !strings.Contains(rr.Output(), want) {
120-
t.Errorf("wanted mode to be %q; got: %q", want, rr.Output())
120+
const want = "777"
121+
if !strings.Contains(rr.Output(), want) {
122+
t.Errorf("wanted mode to be %q; got: %q", want, rr.Output())
123+
}
121124
}
122125

123126
// We can't get the mount details with Hyper-V

0 commit comments

Comments
 (0)