From 37af6563d8f253e56e16916f92519a284de7fb3f Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Thu, 23 Apr 2015 09:38:09 -0700 Subject: [PATCH] Add more detail to the failure notice so that we can actually see what is going on. --- test/e2e/certs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/certs.go b/test/e2e/certs.go index 75278ce6c1c..994013e3ecf 100644 --- a/test/e2e/certs.go +++ b/test/e2e/certs.go @@ -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)) } } })