From: He Yin Ling Date: Thu, 29 Nov 2018 06:36:34 +0000 (+0800) Subject: unit-test-app: fix the RegEx to detect test case: X-Git-Tag: v3.2-beta3~72^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8fd922ca5b8774d786bd9112e263d562172f30c;p=esp-idf unit-test-app: fix the RegEx to detect test case: tags are not correctly parsed if eol do not contain `\r` --- diff --git a/tools/unit-test-app/unit_test.py b/tools/unit-test-app/unit_test.py index 1aae0315b3..eb3005641e 100755 --- a/tools/unit-test-app/unit_test.py +++ b/tools/unit-test-app/unit_test.py @@ -45,7 +45,7 @@ EXCEPTION_PATTERN = re.compile(r"(Guru Meditation Error: Core\s+\d panic'ed \([\ ABORT_PATTERN = re.compile(r"(abort\(\) was called at PC 0x[a-fA-F\d]{8} on core \d)") FINISH_PATTERN = re.compile(r"1 Tests (\d) Failures (\d) Ignored") END_LIST_STR = r'\r?\nEnter test for running' -TEST_PATTERN = re.compile(r'\((\d+)\)\s+"([^"]+)" ([^\r]+)\r?\n(' + END_LIST_STR + r')?') +TEST_PATTERN = re.compile(r'\((\d+)\)\s+"([^"]+)" ([^\r\n]+)\r?\n(' + END_LIST_STR + r')?') TEST_SUBMENU_PATTERN = re.compile(r'\s+\((\d+)\)\s+"[^"]+"\r?\n(?=(?=\()|(' + END_LIST_STR + r'))') SIMPLE_TEST_ID = 0