From 207c9fb4a1f8bf4a155167e2b077116274e83474 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 1 Oct 2020 10:21:03 -0400 Subject: [PATCH] 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 --- .../all-protocol-startup/test_all_protocol_startup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5