diff options
| author | Christian Hopps <chopps@labn.net> | 2021-08-27 14:28:29 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2021-09-04 09:04:46 -0400 | 
| commit | 8db751b853560377ebd640c729ecb4e155e6a6d7 (patch) | |
| tree | 51a8419faf7cc64401f05b13c95a30895c5cd2f9 /tests/topotests/example_test | |
| parent | 4958158787ce9179020d024c14416a23e82713b1 (diff) | |
tests: micronet: adapt tests
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/example_test')
| -rw-r--r-- | tests/topotests/example_test/test_template.py | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/topotests/example_test/test_template.py b/tests/topotests/example_test/test_template.py index 0265dbe796..534dd998d9 100644 --- a/tests/topotests/example_test/test_template.py +++ b/tests/topotests/example_test/test_template.py @@ -41,7 +41,7 @@ from lib.topogen import Topogen, TopoRouter, get_topogen  from lib.topolog import logger  # Required to instantiate the topology builder class. -from mininet.topo import Topo +from lib.micronet_compat import Topo  # TODO: select markers based on daemons used during test @@ -87,7 +87,7 @@ def setup_module(mod):      "Sets up the pytest environment"      # This function initiates the topology build with Topogen...      tgen = Topogen(TemplateTopo, mod.__name__) -    # ... and here it calls Mininet initialization functions. +    # ... and here it calls initialization functions.      tgen.start_topology()      # This is a sample of configuration loading. @@ -113,15 +113,15 @@ def teardown_module(mod):      tgen.stop_topology() -def test_call_mininet_cli(): -    "Dummy test that just calls mininet CLI so we can interact with the build." +def test_call_cli(): +    "Dummy test that just calls tgen.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() +    # logger.info("calling CLI") +    # tgen.cli()  # Memory leak test template  | 
