Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
span: wrong destination interface in tracing
[vpp.git]
/
test
/
vpp_pg_interface.py
diff --git
a/test/vpp_pg_interface.py
b/test/vpp_pg_interface.py
index
4707f0b
..
81e9714
100644
(file)
--- a/
test/vpp_pg_interface.py
+++ b/
test/vpp_pg_interface.py
@@
-220,6
+220,10
@@
class VppPGInterface(VppInterface):
if len(capture.res) == expected_count:
# bingo, got the packets we expected
return capture
if len(capture.res) == expected_count:
# bingo, got the packets we expected
return capture
+ elif len(capture.res) > expected_count:
+ self.test.logger.error(
+ ppc("Unexpected packets captured:", capture))
+ break
else:
self.test.logger.debug("Partial capture containing %s "
"packets doesn't match expected "
else:
self.test.logger.debug("Partial capture containing %s "
"packets doesn't match expected "
@@
-251,8
+255,6
@@
class VppPGInterface(VppInterface):
if not capture or len(capture.res) == 0:
# junk filtered out, we're good
return
if not capture or len(capture.res) == 0:
# junk filtered out, we're good
return
- self.test.logger.error(
- ppc("Unexpected packets captured:", capture))
except:
pass
self.generate_debug_aid("empty-assert")
except:
pass
self.generate_debug_aid("empty-assert")