未验证 提交 ff76e189 编写于 作者: M Medya Ghazizadeh 提交者: GitHub

Merge pull request #9742 from medyagh/svc_test_failure

improve test failure logs for service command
......@@ -731,7 +731,9 @@ func validateServiceCmd(ctx context.Context, t *testing.T, profile string) {
defer func() {
if t.Failed() {
t.Logf("service test failed - dumping debug information")
t.Logf("-----------------------service failure post-mortem--------------------------------")
ctx, cancel := context.WithTimeout(context.Background(), Minutes(2))
defer cancel()
rr, err := Run(t, exec.CommandContext(ctx, "kubectl", "--context", profile, "describe", "po", "hello-node"))
if err != nil {
t.Logf("%q failed: %v", rr.Command(), err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册