test: clean up "dummy0" interface after each test case in networkd-test.py

This commit is contained in:
Martin Pitt
2016-11-20 12:19:21 +01:00
parent 3f59367e6f
commit 9e0c296a16
+2
View File
@@ -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)