Add more detail to the failure notice so that we can actually see what is going on.

This commit is contained in:
Brendan Burns 2015-04-23 09:38:09 -07:00
parent 162b0db743
commit 37af6563d8

View File

@ -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))
}
}
})