mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Add more detail to the failure notice so that we can actually see what is going on.
This commit is contained in:
parent
162b0db743
commit
37af6563d8
@ -41,8 +41,8 @@ var _ = Describe("MasterCerts", func() {
|
|||||||
cmd := exec.Command("gcloud", "compute", "ssh", "--project", testContext.CloudConfig.ProjectID,
|
cmd := exec.Command("gcloud", "compute", "ssh", "--project", testContext.CloudConfig.ProjectID,
|
||||||
"--zone", testContext.CloudConfig.Zone, testContext.CloudConfig.MasterName,
|
"--zone", testContext.CloudConfig.Zone, testContext.CloudConfig.MasterName,
|
||||||
"--command", fmt.Sprintf("ls /srv/kubernetes/%s", certFile))
|
"--command", fmt.Sprintf("ls /srv/kubernetes/%s", certFile))
|
||||||
if _, err := cmd.CombinedOutput(); err != nil {
|
if output, err := cmd.CombinedOutput(); err != nil {
|
||||||
Fail(fmt.Sprintf("Error checking for cert file %s on master: %v", certFile, err))
|
Failf("Error checking for cert file %s on master: %v\n%s", certFile, err, string(output))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user