test: clean up "dummy0" interface after each test case in networkd-test.py
This commit is contained in:
parent
3f59367e6f
commit
9e0c296a16
|
@ -77,6 +77,8 @@ class ClientTestBase:
|
|||
def tearDown(self):
|
||||
self.shutdown_iface()
|
||||
subprocess.call(['systemctl', 'stop', 'systemd-networkd'])
|
||||
subprocess.call(['ip', 'link', 'del', 'dummy0'],
|
||||
stderr=subprocess.DEVNULL)
|
||||
|
||||
def writeConfig(self, fname, contents):
|
||||
os.makedirs(os.path.dirname(fname), exist_ok=True)
|
||||
|
|
Loading…
Reference in a new issue