]> granicus.if.org Git - esp-idf/commitdiff
unit test: fix regex for detecting abort
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 7 Aug 2018 05:37:43 +0000 (08:37 +0300)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 20 Aug 2018 08:49:20 +0000 (16:49 +0800)
tools/unit-test-app/unit_test.py

index c1e6f96d1468875e4da11ff455a278bc0dbd79ae..f0cd686b661f0e7f348bbd37456c66dc49736acb 100755 (executable)
@@ -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')?')