Skip to content

Commit

Permalink
skip checking mode on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Dec 10, 2021
1 parent f8028bc commit 3ad2f8d
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions test/integration/mount_start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"context"
"fmt"
"os/exec"
"runtime"
"strings"
"testing"
)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3ad2f8d

Please sign in to comment.