Commit 429534d6 authored by Brendan Burns's avatar Brendan Burns

Merge pull request #7226 from brendandburns/e2e

Add more detail to the failure notice so that we can actually see what is going on.
parents 6207c518 37af6563
......@@ -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))
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment