aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-12-06 16:02:55 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-06 16:48:42 +0100
commite4eacdb09f4f23fd1835c0d5f1eb2f79cb19cb77 (patch)
tree0c6d9c5c38e260bb5fc74e2a03e51f7ae9d7a315 /test
parenttest-network: add a line break after starting networkd (diff)
downloadsystemd-e4eacdb09f4f23fd1835c0d5f1eb2f79cb19cb77.tar.gz
systemd-e4eacdb09f4f23fd1835c0d5f1eb2f79cb19cb77.tar.bz2
systemd-e4eacdb09f4f23fd1835c0d5f1eb2f79cb19cb77.zip
test-network: delete rules before running next test
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 893a27ac7..b5cb09ee6 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -604,6 +604,8 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
self.assertRegex(output, 'oif test1')
self.assertRegex(output, 'lookup 7')
+ subprocess.call(['ip', 'rule', 'del', 'table', '7'])
+
def test_routing_policy_rule_port_range(self):
self.copy_unit_to_networkd_unit_path('25-fibrule-port-range.network', '11-dummy.netdev')
self.start_networkd()
@@ -619,6 +621,8 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
self.assertRegex(output, 'tcp')
self.assertRegex(output, 'lookup 7')
+ subprocess.call(['ip', 'rule', 'del', 'table', '7'])
+
def test_routing_policy_rule_invert(self):
self.copy_unit_to_networkd_unit_path('25-fibrule-invert.network', '11-dummy.netdev')
self.start_networkd()
@@ -632,6 +636,8 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
self.assertRegex(output, 'tcp')
self.assertRegex(output, 'lookup 7')
+ subprocess.call(['ip', 'rule', 'del', 'table', '7'])
+
def test_address_preferred_lifetime_zero_ipv6(self):
self.copy_unit_to_networkd_unit_path('25-address-section-miscellaneous.network', '12-dummy.netdev')
self.start_networkd()