summaryrefslogtreecommitdiffstats
path: root/tests/topotests/conftest.py
diff options
context:
space:
mode:
authorChristian Hopps <chopps@gmail.com>2023-03-24 14:06:38 +0100
committerChristian Hopps <chopps@labn.net>2023-04-15 19:29:38 +0200
commit60e037780e8fb76a95028f2f1e3c56f83b6cc74e (patch)
tree4420b3165b38afa6b9eeb1d67e397989ff15b11a /tests/topotests/conftest.py
parenttests: import munet 0.12.12 (diff)
downloadfrr-60e037780e8fb76a95028f2f1e3c56f83b6cc74e.tar.xz
frr-60e037780e8fb76a95028f2f1e3c56f83b6cc74e.zip
tests: switch to munet
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/conftest.py')
-rwxr-xr-xtests/topotests/conftest.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/topotests/conftest.py b/tests/topotests/conftest.py
index df5d06602..4224b037b 100755
--- a/tests/topotests/conftest.py
+++ b/tests/topotests/conftest.py
@@ -7,21 +7,23 @@ import glob
import os
import pdb
import re
+import resource
import subprocess
import sys
import time
-import resource
import pytest
+
import lib.fixtures
from lib import topolog
-from lib.micronet import Commander, proc_error
-from lib.micronet_cli import cli
-from lib.micronet_compat import Mininet, cleanup_current, cleanup_previous
+from lib.micronet_compat import Mininet
from lib.topogen import diagnose_env, get_topogen
from lib.topolog import logger
from lib.topotest import g_extra_config as topotest_extra_config
from lib.topotest import json_cmp_result
+from munet.base import Commander, proc_error
+from munet.cleanup import cleanup_current, cleanup_previous
+from munet import cli
def pytest_addoption(parser):
@@ -501,7 +503,7 @@ def pytest_runtest_makereport(item, call):
# Really would like something better than using this global here.
# Not all tests use topogen though so get_topogen() won't work.
if Mininet.g_mnet_inst:
- cli(Mininet.g_mnet_inst, title=title, background=False)
+ cli.cli(Mininet.g_mnet_inst, title=title, background=False)
else:
logger.error("Could not launch CLI b/c no mininet exists yet")
@@ -515,7 +517,7 @@ def pytest_runtest_makereport(item, call):
user = user.strip()
if user == "cli":
- cli(Mininet.g_mnet_inst)
+ cli.cli(Mininet.g_mnet_inst)
elif user == "pdb":
pdb.set_trace() # pylint: disable=forgotten-debug-statement
elif user: