From 720dcb642813decdb46c082429913e29844192fd Mon Sep 17 00:00:00 2001 From: Peter Rifel Date: Sun, 10 Jan 2021 12:19:04 -0600 Subject: [PATCH] Add troubleshooting statements --- tests/e2e/pkg/tester/tester.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e/pkg/tester/tester.go b/tests/e2e/pkg/tester/tester.go index b801d88f25..9b2668c78f 100644 --- a/tests/e2e/pkg/tester/tester.go +++ b/tests/e2e/pkg/tester/tester.go @@ -36,9 +36,11 @@ func (t *Tester) pretestSetup() error { if err != nil { return fmt.Errorf("failed to get kubectl package from published releases: %s", err) } + existingPath := os.Getenv("PATH") - os.Setenv("PATH", fmt.Sprintf("%v:%v", filepath.Dir(kubectlPath), existingPath)) - return nil + newPath := fmt.Sprintf("%v:%v", filepath.Dir(kubectlPath), existingPath) + klog.Info("Setting PATH=", newPath) + return os.Setenv("PATH", newPath) } func (t *Tester) Execute() error {