diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-05-02 00:11:49 +0900 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-05-01 20:02:15 +0200 |
commit | 8e2449a5c91c619bddcf5e57d8b6f1700d28acdc (patch) | |
tree | 9d6a1d477a8820f486c75c1eafbc32bc829c6f63 /test | |
parent | 669f16acf7af9d91eaf1c4d5457c79dde97a7858 (diff) | |
download | systemd-8e2449a5c91c619bddcf5e57d8b6f1700d28acdc.tar.gz |
test-network: add workaround for bug in iproute2 v6.2.0
Closes #27473.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index f88878435c..034146a5fb 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -3636,10 +3636,14 @@ class NetworkdTCTests(unittest.TestCase, Utilities): output = check_output('tc -d class show dev dummy98') print(output) - self.assertRegex(output, 'class htb 2:37 root leaf 37:') - self.assertRegex(output, 'class htb 2:3a root leaf 3a:') - self.assertRegex(output, 'class htb 2:3b root leaf 3b:') - self.assertRegex(output, 'class htb 2:3c root leaf 3c:') + # Here (:|prio) is a workaround for a bug in iproute2 v6.2.0 caused by + # https://github.com/shemminger/iproute2/commit/010a8388aea11e767ba3a2506728b9ad9760df0e + # which is fixed in v6.3.0 by + # https://github.com/shemminger/iproute2/commit/4e0e56e0ef05387f7f5d8ab41fe6ec6a1897b26d + self.assertRegex(output, 'class htb 2:37 root leaf 37(:|prio) ') + self.assertRegex(output, 'class htb 2:3a root leaf 3a(:|prio) ') + self.assertRegex(output, 'class htb 2:3b root leaf 3b(:|prio) ') + self.assertRegex(output, 'class htb 2:3c root leaf 3c(:|prio) ') self.assertRegex(output, 'prio 1 quantum 4000 rate 1Mbit overhead 100 ceil 500Kbit') self.assertRegex(output, 'burst 123456') self.assertRegex(output, 'cburst 123457') |