summaryrefslogtreecommitdiff
path: root/tests/topotests/munet/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/munet/base.py')
-rw-r--r--tests/topotests/munet/base.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/topotests/munet/base.py b/tests/topotests/munet/base.py
index 38da7faa01..eb4b088442 100644
--- a/tests/topotests/munet/base.py
+++ b/tests/topotests/munet/base.py
@@ -26,6 +26,7 @@ from collections import defaultdict
from pathlib import Path
from typing import Union
+from . import config as munet_config
from . import linux
@@ -2493,7 +2494,15 @@ class Bridge(SharedNamespace, InterfaceMixin):
class BaseMunet(LinuxNamespace):
"""Munet."""
- def __init__(self, name="munet", isolated=True, pid=True, rundir=None, **kwargs):
+ def __init__(
+ self,
+ name="munet",
+ isolated=True,
+ pid=True,
+ rundir=None,
+ pytestconfig=None,
+ **kwargs,
+ ):
"""Create a Munet."""
# logging.warning("BaseMunet: %s", name)
@@ -2562,6 +2571,8 @@ class BaseMunet(LinuxNamespace):
roothost = self.rootcmd
+ self.cfgopt = munet_config.ConfigOptionsProxy(pytestconfig)
+
super().__init__(
name, mount=True, net=isolated, uts=isolated, pid=pid, unet=None, **kwargs
)