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
Brendan Burns 2015-04-23 14:43:27 -07:00
commit 429534d6d5
1 changed files with 2 additions and 2 deletions

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