From adc1d6a42897f4502dcf9c1bea13a7b7aa98580d Mon Sep 17 00:00:00 2001 From: Maciej Pytel Date: Thu, 27 Apr 2017 16:52:53 +0200 Subject: [PATCH] Log error before failing in autoscaling e2e --- test/e2e/autoscaling/cluster_size_autoscaling.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/autoscaling/cluster_size_autoscaling.go b/test/e2e/autoscaling/cluster_size_autoscaling.go index 3454140ad4b..8744a8df0e3 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -458,7 +458,7 @@ var _ = framework.KubeDescribe("Cluster size autoscaling [Slow]", func() { }) func execCmd(args ...string) *exec.Cmd { - glog.Info("Executing: %s", strings.Join(args, " ")) + glog.Infof("Executing: %s", strings.Join(args, " ")) return exec.Command(args[0], args[1:]...) } @@ -627,8 +627,8 @@ func addNodePool(name string, machineType string, numNodes int) { "--project="+framework.TestContext.CloudConfig.ProjectID, "--zone="+framework.TestContext.CloudConfig.Zone, "--cluster="+framework.TestContext.CloudConfig.Cluster).CombinedOutput() - framework.ExpectNoError(err) glog.Infof("Creating node-pool %s: %s", name, output) + framework.ExpectNoError(err) } func deleteNodePool(name string) {