Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tests: use proper unit test skip instead of prints
[vpp.git]
/
test
/
vm_vpp_interfaces.py
diff --git
a/test/vm_vpp_interfaces.py
b/test/vm_vpp_interfaces.py
index
ed2d55b
..
cb48fee
100644
(file)
--- a/
test/vm_vpp_interfaces.py
+++ b/
test/vm_vpp_interfaces.py
@@
-126,7
+126,7
@@
def create_test(test_name, test, ip_version, mtu):
)
)
else:
)
)
else:
-
print
(
+
return unittest.skip
(
f"Skipping test:{test_name} as mtu:{mtu} is "
f"invalid for TCP/IPv{ip_version}"
)
f"Skipping test:{test_name} as mtu:{mtu} is "
f"invalid for TCP/IPv{ip_version}"
)
@@
-146,8
+146,6
@@
def generate_vpp_interface_tests(tests, test_class):
generated tests are set as attributes.
"""
generated tests are set as attributes.
"""
- if config.skip_netns_tests:
- print("Skipping netns tests")
for test in tests:
for ip_version in test_config["ip_versions"]:
for mtu in test_config["mtus"]:
for test in tests:
for ip_version in test_config["ip_versions"]:
for mtu in test_config["mtus"]: