Skip to content

Commit 249bcf7

Browse files
authored
Merge pull request #272 from cybozu-go/debug-kubectl-failure
e2e: show kubectl stderr on failure in EnsureCorrectRestoration
2 parents c4f452f + 4463ab1 commit 249bcf7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/e2e/multik8s/testutil/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,9 +625,9 @@ func EnsureCorrectRestoration(
625625
Eventually(ctx, func(g Gomega) {
626626
err := ApplyMountDeployTemplate(clusterNo, namespace, mountDeployName, restoreName)
627627
g.Expect(err).NotTo(HaveOccurred())
628-
stdout, _, err := Kubectl(clusterNo, nil, "exec", "-n", namespace, "deploy/"+mountDeployName, "--",
628+
stdout, stderr, err := Kubectl(clusterNo, nil, "exec", "-n", namespace, "deploy/"+mountDeployName, "--",
629629
"bash", "-c", "sha256sum /volume/data | awk '{print $1}'")
630-
g.Expect(err).NotTo(HaveOccurred())
630+
g.Expect(err).NotTo(HaveOccurred(), "stderr: %s", string(stderr))
631631
g.Expect(string(stdout)).To(Equal(writtenDataHash))
632632
}).Should(Succeed())
633633
}

0 commit comments

Comments
 (0)