@@ -108,16 +108,19 @@ func validateMount(ctx context.Context, t *testing.T, profile string) {
108
108
return
109
109
}
110
110
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
+ }
117
119
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
+ }
121
124
}
122
125
123
126
// We can't get the mount details with Hyper-V
0 commit comments