]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: fix test_qdisc2()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 28 Jan 2020 17:05:48 +0000 (02:05 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 28 Jan 2020 21:33:31 +0000 (22:33 +0100)
quantum and initial_quantum may suffixed with 'b'.

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

index f45e948b682a1ffbb6eb935c012c20cd42804113..eb4eebebaede570e4cfea9985b80798a9726677d 100755 (executable)
@@ -2211,7 +2211,10 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         output = check_output('tc qdisc show dev dummy98')
         print(output)
         self.assertRegex(output, 'qdisc fq')
-        self.assertRegex(output, 'limit 1000p flow_limit 200p buckets 512 orphan_mask 511 quantum 1500 initial_quantum 13000 maxrate 1Mbit')
+        self.assertRegex(output, 'limit 1000p flow_limit 200p buckets 512 orphan_mask 511')
+        self.assertRegex(output, 'quantum 1500')
+        self.assertRegex(output, 'initial_quantum 13000')
+        self.assertRegex(output, 'maxrate 1Mbit')
         self.assertRegex(output, 'qdisc codel')
         self.assertRegex(output, 'limit 2000p target 10.0ms ce_threshold 100.0ms interval 50.0ms ecn')