From: Ivan Grokhotkov Date: Tue, 7 Aug 2018 05:37:43 +0000 (+0300) Subject: unit test: fix regex for detecting abort X-Git-Tag: v3.2-beta1~299^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b600a908c4daaa5218b88688a659ef9dcd924743;p=esp-idf unit test: fix regex for detecting abort --- diff --git a/tools/unit-test-app/unit_test.py b/tools/unit-test-app/unit_test.py index c1e6f96d14..f0cd686b66 100755 --- a/tools/unit-test-app/unit_test.py +++ b/tools/unit-test-app/unit_test.py @@ -43,7 +43,7 @@ from IDF.IDFApp import UT UT_APP_BOOT_UP_DONE = "Press ENTER to see the list of tests." RESET_PATTERN = re.compile(r"(ets [\w]{3}\s+[\d]{1,2} [\d]{4} [\d]{2}:[\d]{2}:[\d]{2}[^()]*\([\w].*?\))") EXCEPTION_PATTERN = re.compile(r"(Guru Meditation Error: Core\s+\d panic'ed \([\w].*?\))") -ABORT_PATTERN = re.compile(r"(abort\(\) was called at PC 0x[a-eA-E\d]{8} on core \d)") +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')?')