From: Mark Stapp Date: Thu, 1 Oct 2020 14:21:03 +0000 (-0400) Subject: tests: fix regex in all_proto test X-Git-Tag: base_7.6~473^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=207c9fb4a1f8bf4a155167e2b077116274e83474;p=matthieu%2Ffrr.git tests: fix regex in all_proto test Make sure the all-protocols test_isis_interfaces testcase uses a regex substitution that includes all the hex characters. Signed-off-by: Mark Stapp --- diff --git a/tests/topotests/all-protocol-startup/test_all_protocol_startup.py b/tests/topotests/all-protocol-startup/test_all_protocol_startup.py index 32b219283b..4b57928366 100644 --- a/tests/topotests/all-protocol-startup/test_all_protocol_startup.py +++ b/tests/topotests/all-protocol-startup/test_all_protocol_startup.py @@ -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)