Skip to content

Commit 5f8a449

Browse files
yuwatabluca
authored andcommitted
test-network: add workaround for bug in iproute2 v6.2.0
Closes #27473. (cherry picked from commit 8e2449a) (cherry picked from commit 8813826) (cherry picked from commit a4bef2a)
1 parent d95989f commit 5f8a449

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

test/test-network/systemd-networkd-tests.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,19 +3427,24 @@ def test_qdisc(self):
34273427

34283428
output = check_output('tc -d class show dev dummy98')
34293429
print(output)
3430-
self.assertRegex(output, 'class htb 2:30 root leaf 30:')
3431-
self.assertRegex(output, 'class htb 2:31 root leaf 31:')
3432-
self.assertRegex(output, 'class htb 2:32 root leaf 32:')
3433-
self.assertRegex(output, 'class htb 2:33 root leaf 33:')
3434-
self.assertRegex(output, 'class htb 2:34 root leaf 34:')
3435-
self.assertRegex(output, 'class htb 2:35 root leaf 35:')
3436-
self.assertRegex(output, 'class htb 2:36 root leaf 36:')
3437-
self.assertRegex(output, 'class htb 2:37 root leaf 37:')
3438-
self.assertRegex(output, 'class htb 2:38 root leaf 38:')
3439-
self.assertRegex(output, 'class htb 2:39 root leaf 39:')
3440-
self.assertRegex(output, 'class htb 2:3a root leaf 3a:')
3441-
self.assertRegex(output, 'class htb 2:3b root leaf 3b:')
3442-
self.assertRegex(output, 'class htb 2:3c root leaf 3c:')
3430+
# Here (:|prio) is a workaround for a bug in iproute2 v6.2.0 caused by
3431+
# https://github.com/shemminger/iproute2/commit/010a8388aea11e767ba3a2506728b9ad9760df0e
3432+
# which is fixed in v6.3.0 by
3433+
# https://github.com/shemminger/iproute2/commit/4e0e56e0ef05387f7f5d8ab41fe6ec6a1897b26d
3434+
self.assertRegex(output, 'class htb 2:30 root leaf 30(:|prio) ')
3435+
self.assertRegex(output, 'class htb 2:31 root leaf 31(:|prio) ')
3436+
self.assertRegex(output, 'class htb 2:32 root leaf 32(:|prio) ')
3437+
self.assertRegex(output, 'class htb 2:33 root leaf 33(:|prio) ')
3438+
self.assertRegex(output, 'class htb 2:34 root leaf 34(:|prio) ')
3439+
self.assertRegex(output, 'class htb 2:35 root leaf 35(:|prio) ')
3440+
self.assertRegex(output, 'class htb 2:36 root leaf 36(:|prio) ')
3441+
self.assertRegex(output, 'class htb 2:37 root leaf 37(:|prio) ')
3442+
self.assertRegex(output, 'class htb 2:38 root leaf 38(:|prio) ')
3443+
self.assertRegex(output, 'class htb 2:39 root leaf 39(:|prio) ')
3444+
self.assertRegex(output, 'class htb 2:3a root leaf 3a(:|prio) ')
3445+
self.assertRegex(output, 'class htb 2:3b root leaf 3b(:|prio) ')
3446+
self.assertRegex(output, 'class htb 2:3c root leaf 3c(:|prio) ')
3447+
34433448
self.assertRegex(output, 'prio 1 quantum 4000 rate 1Mbit overhead 100 ceil 500Kbit')
34443449
self.assertRegex(output, 'burst 123456')
34453450
self.assertRegex(output, 'cburst 123457')

0 commit comments

Comments
 (0)