diff --git a/test/integration/functional_test.go b/test/integration/functional_test.go index 6623f1f362..75d489f7f5 100644 --- a/test/integration/functional_test.go +++ b/test/integration/functional_test.go @@ -774,7 +774,7 @@ func validateFileSync(ctx context.Context, t *testing.T, profile string) { vp := vmSyncTestPath() t.Logf("Checking for existence of %s within VM", vp) - rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", fmt.Sprintf("cat %s", vp))) + rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", fmt.Sprintf("sudo cat %s", vp))) if err != nil { t.Errorf("%s failed: %v", rr.Command(), err) } @@ -811,7 +811,7 @@ func validateCertSync(ctx context.Context, t *testing.T, profile string) { } for _, vp := range paths { t.Logf("Checking for existence of %s within VM", vp) - rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", fmt.Sprintf("cat %s", vp))) + rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "ssh", fmt.Sprintf("sudo cat %s", vp))) if err != nil { t.Errorf("failed to check existence of %q inside minikube. args %q: %v", vp, rr.Command(), err) }