mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
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:
parent
1d88bce2a0
commit
f7bdd562a9
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue