tests: make NetworkdNetWorkTests.test_routing_policy_rule pass on CentOS

Depending on the content of /etc/iproute2/rt_dsfield, ip can print either
`0x08` or `throughput` as was shown in https://github.com/systemd/systemd/issues/10617#issuecomment-435200859.
This commit is contained in:
Evgeny Vereshchagin 2018-11-02 17:03:45 +01:00
parent 1d88bce2a0
commit f7bdd562a9

View file

@ -425,7 +425,7 @@ class NetworkdNetWorkTests(unittest.TestCase, Utilities):
print(output)
self.assertRegex(output, '111')
self.assertRegex(output, 'from 192.168.100.18')
self.assertRegex(output, 'tos 0x08')
self.assertRegex(output, r'tos (?:0x08|throughput)\s')
self.assertRegex(output, 'iif test1')
self.assertRegex(output, 'oif test1')
self.assertRegex(output, 'lookup 7')