mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-04 15:26:35 +00:00
Merge pull request #5087 from opensourcerouting/topotest-skip-on-assert-failure
topotests: skip tests when any assert fails
This commit is contained in:
commit
dda524e843
@ -74,3 +74,9 @@ def pytest_runtest_makereport(item, call):
|
|||||||
parent._previousfailed = item
|
parent._previousfailed = item
|
||||||
logger.error('assert failed at "{}/{}": {}'.format(
|
logger.error('assert failed at "{}/{}": {}'.format(
|
||||||
modname, item.name, call.excinfo.value))
|
modname, item.name, call.excinfo.value))
|
||||||
|
|
||||||
|
# (topogen) Set topology error to avoid advancing in the test.
|
||||||
|
tgen = get_topogen()
|
||||||
|
if tgen is not None:
|
||||||
|
# This will cause topogen to report error on `routers_have_failure`.
|
||||||
|
tgen.set_error('{}/{}'.format(modname, item.name))
|
||||||
|
Loading…
Reference in New Issue
Block a user