mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-03 13:47:04 +03:00
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…
x
Reference in New Issue
Block a user