Skip to content

Commit 51e9ff8

Browse files
authored
Merge pull request kubernetes#82224 from liggitt/debug-kubectl-e2e-log
Add debug info to kubectl e2e
2 parents 88f3139 + 6b961eb commit 51e9ff8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/kubectl/kubectl.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,16 +1310,19 @@ metadata:
13101310

13111311
ginkgo.By("limiting log lines")
13121312
out := framework.RunKubectlOrDie("logs", podName, containerName, nsFlag, "--tail=1")
1313+
e2elog.Logf("got output %q", out)
13131314
gomega.Expect(len(out)).NotTo(gomega.BeZero())
13141315
framework.ExpectEqual(len(lines(out)), 1)
13151316

13161317
ginkgo.By("limiting log bytes")
13171318
out = framework.RunKubectlOrDie("logs", podName, containerName, nsFlag, "--limit-bytes=1")
1319+
e2elog.Logf("got output %q", out)
13181320
framework.ExpectEqual(len(lines(out)), 1)
13191321
framework.ExpectEqual(len(out), 1)
13201322

13211323
ginkgo.By("exposing timestamps")
13221324
out = framework.RunKubectlOrDie("logs", podName, containerName, nsFlag, "--tail=1", "--timestamps")
1325+
e2elog.Logf("got output %q", out)
13231326
l := lines(out)
13241327
framework.ExpectEqual(len(l), 1)
13251328
words := strings.Split(l[0], " ")

0 commit comments

Comments
 (0)