Skip to content

Commit 6b961eb

Browse files
committed
Add debug info to kubectl e2e
1 parent b327a72 commit 6b961eb

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
@@ -1322,16 +1322,19 @@ metadata:
13221322

13231323
ginkgo.By("limiting log lines")
13241324
out := framework.RunKubectlOrDie("logs", podName, containerName, nsFlag, "--tail=1")
1325+
e2elog.Logf("got output %q", out)
13251326
gomega.Expect(len(out)).NotTo(gomega.BeZero())
13261327
framework.ExpectEqual(len(lines(out)), 1)
13271328

13281329
ginkgo.By("limiting log bytes")
13291330
out = framework.RunKubectlOrDie("logs", podName, containerName, nsFlag, "--limit-bytes=1")
1331+
e2elog.Logf("got output %q", out)
13301332
framework.ExpectEqual(len(lines(out)), 1)
13311333
framework.ExpectEqual(len(out), 1)
13321334

13331335
ginkgo.By("exposing timestamps")
13341336
out = framework.RunKubectlOrDie("logs", podName, containerName, nsFlag, "--tail=1", "--timestamps")
1337+
e2elog.Logf("got output %q", out)
13351338
l := lines(out)
13361339
framework.ExpectEqual(len(l), 1)
13371340
words := strings.Split(l[0], " ")

0 commit comments

Comments
 (0)