Add troubleshooting statements

This commit is contained in:
Peter Rifel 2021-01-10 12:19:04 -06:00
parent 5074f327a2
commit 720dcb6428
No known key found for this signature in database
GPG Key ID: BC6469E5B16DB2B6
1 changed files with 4 additions and 2 deletions

View File

@ -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 {