Skip to content

Commit

Permalink
Merge pull request #3727 from tssurya/debug-etp-local-flake
Browse files Browse the repository at this point in the history
Add debug statements to figure out ETP=local flake
  • Loading branch information
trozet committed Jun 29, 2023
2 parents 7e63fb7 + 0625e16 commit 9d36484
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -866,10 +866,12 @@ func pokeIPTableRules(clientContainer, pattern string) int {
cmd = append(cmd, ipTCommand...)
iptRules, err := runCommand(cmd...)
framework.ExpectNoError(err, "failed to get iptable rules from node %s", clientContainer)
framework.Logf("DEBUG: Dumping IPTRules %v", iptRules)
numOfMatchRules := 0
for _, iptRule := range strings.Split(iptRules, "\n") {
match := strings.Contains(iptRule, pattern)
if match {
framework.Logf("DEBUG: Matched rule %s for pattern %s", iptRule, pattern)
numOfMatchRules++
}
}
Expand Down

0 comments on commit 9d36484

Please sign in to comment.