]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: fix regex in all_proto test 7221/head
authorMark Stapp <mjs@voltanet.io>
Thu, 1 Oct 2020 14:21:03 +0000 (10:21 -0400)
committerMark Stapp <mjs@voltanet.io>
Thu, 1 Oct 2020 14:21:03 +0000 (10:21 -0400)
Make sure the all-protocols test_isis_interfaces testcase uses
a regex substitution that includes all the hex characters.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
tests/topotests/all-protocol-startup/test_all_protocol_startup.py

index 32b219283b324e4913d4c41438c9ae8243d83942..4b57928366b3dfbf735bf085d8dc93937825c841 100644 (file)
@@ -688,7 +688,8 @@ def test_isis_interfaces():
             # Mask out SNPA mac address portion. They are random...
             actual = re.sub(r"SNPA: [0-9a-f\.]+", "SNPA: XXXX.XXXX.XXXX", actual)
             # Mask out Circuit ID number
-            actual = re.sub(r"Circuit Id: 0x[0-9]+", "Circuit Id: 0xXX", actual)
+            actual = re.sub(r"Circuit Id: 0x[0-9a-f]+", "Circuit Id: 0xXX",
+                            actual)
             # Fix newlines (make them all the same)
             actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1)