提交 e1207586 编写于 作者: M Medya Gh

same tabs

上级 4464b848
......@@ -201,9 +201,9 @@ func clusterLogs(t *testing.T, profile string) {
return
}
t.Logf("--------------------------post-mortem--------------------------------")
t.Logf("-----------------------post-mortem--------------------------------")
t.Logf("<<< %s FAILED: start of post-mortem logs <<<", t.Name())
t.Logf("----------------------post-mortem minikube logs----------------------")
t.Logf("-------------------post-mortem minikube logs----------------------")
rr, err := Run(t, exec.Command(Target(), "-p", profile, "logs", "--problems"))
if err != nil {
t.Logf("failed logs error: %v", err)
......@@ -211,20 +211,20 @@ func clusterLogs(t *testing.T, profile string) {
}
t.Logf("%s logs: %s", t.Name(), rr.Output())
t.Logf("----------------------post-mortem api server status-------------------")
t.Logf("------------------post-mortem api server status-------------------")
st = Status(context.Background(), t, Target(), profile, "APIServer")
if st != state.Running.String() {
t.Logf("%q apiserver is not running, skipping kubectl commands (state=%q)", profile, st)
return
}
t.Logf("---------------------post-mortem get pods------------------------------")
t.Logf("--------------------post-mortem get pods--------------------------")
rr, rerr := Run(t, exec.Command("kubectl", "--context", profile, "get", "po", "-A", "--show-labels"))
if rerr != nil {
t.Logf("%s: %v", rr.Command(), rerr)
return
}
t.Logf("(dbg) %s:\n%s", rr.Command(), rr.Output())
t.Logf("---------------------post-mortem describe node-------------------------")
t.Logf("-------------------post-mortem describe node----------------------")
rr, err = Run(t, exec.Command("kubectl", "--context", profile, "describe", "node"))
if err != nil {
t.Logf("%s: %v", rr.Command(), err)
......@@ -233,7 +233,7 @@ func clusterLogs(t *testing.T, profile string) {
}
t.Logf("------------------------------------------------------------------")
t.Logf("<<< %s FAILED: end of post-mortem logs <<<", t.Name())
t.Logf("---------------- /post-mortem ---------------------------")
t.Logf("---------------------/post-mortem---------------------------------")
}
// podStatusMsg returns a human-readable pod status, for generating debug status
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册