mirror of https://github.com/k3s-io/k3s
Merge pull request #7226 from brendandburns/e2e
Add more detail to the failure notice so that we can actually see what is going on.pull/6/head
commit
429534d6d5
|
@ -41,8 +41,8 @@ var _ = Describe("MasterCerts", func() {
|
|||
cmd := exec.Command("gcloud", "compute", "ssh", "--project", testContext.CloudConfig.ProjectID,
|
||||
"--zone", testContext.CloudConfig.Zone, testContext.CloudConfig.MasterName,
|
||||
"--command", fmt.Sprintf("ls /srv/kubernetes/%s", certFile))
|
||||
if _, err := cmd.CombinedOutput(); err != nil {
|
||||
Fail(fmt.Sprintf("Error checking for cert file %s on master: %v", certFile, err))
|
||||
if output, err := cmd.CombinedOutput(); err != nil {
|
||||
Failf("Error checking for cert file %s on master: %v\n%s", certFile, err, string(output))
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue