summaryrefslogtreecommitdiff
path: root/test/networkd-test.py
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-11-20 10:08:23 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2016-11-20 12:19:21 +0100
commit9e0c296a168a7c6aca0c877eb6758ff244325e61 (patch)
tree3fa987a2747501d3f7abd72fbbfd960aaffe4163 /test/networkd-test.py
parent3f59367e6fae0ba991d1e287a0f784ecdcda79af (diff)
test: clean up "dummy0" interface after each test case in networkd-test.py
Diffstat (limited to 'test/networkd-test.py')
-rwxr-xr-xtest/networkd-test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/networkd-test.py b/test/networkd-test.py
index 3091722fc1..9767bd72f2 100755
--- a/test/networkd-test.py
+++ b/test/networkd-test.py
@@ -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)