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

This commit is contained in:
Martin Pitt 2016-11-20 10:08:23 +01:00
parent 3f59367e6f
commit 9e0c296a16

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)