Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functest: Fix ip link command output #822

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions test/conformance/tests/test_sriov_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,14 @@ var _ = Describe("[sriov] operator", func() {
Expect(err).ToNot(HaveOccurred())

Eventually(func() bool {
stdout, stderr, err := pod.ExecCommand(clients, hostNetPod, "ip", "link", "show")
Expect(err).ToNot(HaveOccurred())
Expect(stderr).To(Equal(""))
var stdout, stderr string
// Adding a retry because some of the time we get `Dump was interrupted and may be inconsistent.`
// output from the ip link command
Eventually(func(g Gomega) {
adrianchiris marked this conversation as resolved.
Show resolved Hide resolved
stdout, stderr, err = pod.ExecCommand(clients, hostNetPod, "ip", "link", "show")
g.Expect(err).ToNot(HaveOccurred())
g.Expect(stderr).To(Equal(""))
}, time.Minute, 2*time.Second).Should(Succeed())

found := false
for _, line := range strings.Split(stdout, "\n") {
Expand Down
Loading