]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: fix regex in all_proto test
authorMark Stapp <mjs@voltanet.io>
Thu, 1 Oct 2020 14:21:03 +0000 (10:21 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 2 Oct 2020 11:37:05 +0000 (14:37 +0300)
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 8525838d96a78cca55623573d25db0b4c870031a..fb19f5a04d91d5598ac3b6a19c8e4dcfea47063a 100755 (executable)
@@ -678,7 +678,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)