diff options
| author | Rafael Zalamena <rzalamena@gmail.com> | 2017-07-13 09:49:37 -0300 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-27 20:22:11 -0500 |
| commit | d176de4d0a08028e7991188a04c28a55aea76e3c (patch) | |
| tree | 2464b54a2c37cbcbb573a40e48ca4fa27b629e25 /tests/topotests/example-test/test_template.py | |
| parent | 7b093d84e008789ba03448d966e3d706c3500e34 (diff) | |
template: add router check test
Show test developers that they can check if routers are running by
calling tgen.routers_have_failure().
Diffstat (limited to 'tests/topotests/example-test/test_template.py')
| -rwxr-xr-x | tests/topotests/example-test/test_template.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/topotests/example-test/test_template.py b/tests/topotests/example-test/test_template.py index fda2248b31..4e35ce8b9f 100755 --- a/tests/topotests/example-test/test_template.py +++ b/tests/topotests/example-test/test_template.py @@ -99,6 +99,10 @@ def teardown_module(mod): def test_call_mininet_cli(): "Dummy test that just calls mininet CLI so we can interact with the build." tgen = get_topogen() + # Don't run this test if we have any failure. + if tgen.routers_have_failure(): + pytest.skip(tgen.errors) + logger.info('calling mininet CLI') tgen.mininet_cli() |
