From a855f4ed052f615c7e5d72a3666f79d0d8089a75 Mon Sep 17 00:00:00 2001 From: tstromberg Date: Thu, 2 Apr 2020 10:37:23 -0700 Subject: [PATCH] Run sudo for file display due to umask --- test/integration/functional_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }