hack/e2e.go: Dump cluster logs in case of Up failure

This commit is contained in:
Zach Loafman
2016-11-30 16:18:53 -08:00
parent ec1371b2b1
commit dbb2a5775b

View File

@@ -236,6 +236,11 @@ func run(deploy deployer) error {
}
// Start the cluster using this version.
if err := xmlWrap("Up", deploy.Up); err != nil {
if *dump != "" {
xmlWrap("DumpClusterLogs", func() error {
return DumpClusterLogs(*dump)
})
}
return fmt.Errorf("starting e2e cluster: %s", err)
}
if *dump != "" {