Created
October 3, 2019 21:06
-
-
Save cgwalters/1a7ae148a983037b42b98d837419d962 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ffc795562602637a7c3bc57bad7f20fdad58fa33 Mon Sep 17 00:00:00 2001 | |
From: Stephen Lowrie <[email protected]> | |
Date: Thu, 3 Oct 2019 15:40:48 -0500 | |
Subject: [PATCH] HACK: Manhole on failure | |
--- | |
kola/cluster/cluster.go | 4 ++++ | |
1 file changed, 4 insertions(+) | |
diff --git a/kola/cluster/cluster.go b/kola/cluster/cluster.go | |
index eb5e778f..711c4650 100644 | |
--- a/kola/cluster/cluster.go | |
+++ b/kola/cluster/cluster.go | |
@@ -127,6 +127,10 @@ func (t *TestCluster) SSH(m platform.Machine, cmd string) ([]byte, error) { | |
func (t *TestCluster) MustSSH(m platform.Machine, cmd string) []byte { | |
out, err := t.SSH(m, cmd) | |
if err != nil { | |
+ if _, ok := os.LookupEnv("KOLA_MANHOLE"); ok { | |
+ t.Logf("%q failed: output %s, status %v", cmd, out, err) | |
+ platform.Manhole(m) | |
+ } | |
t.Fatalf("%q failed: output %s, status %v", cmd, out, err) | |
} | |
return out | |
-- | |
2.21.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment