Skip to content

Commit 568e777

Browse files
sylvioalvesfabiobaltieri
authored andcommitted
twister: update overflow section name regex
esp32 platforms can overflow its dram0_0_seg and dram0_1_seg. So update current dram section to meet both cases. Signed-off-by: Sylvio Alves <[email protected]>
1 parent ec5d127 commit 568e777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pylib/twister/twisterlib/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def run_build(self, args=[]):
299299
log.write(log_msg)
300300

301301
if log_msg:
302-
overflow_found = re.findall("region `(FLASH|ROM|RAM|ICCM|DCCM|SRAM|dram0_1_seg)' overflowed by", log_msg)
302+
overflow_found = re.findall("region `(FLASH|ROM|RAM|ICCM|DCCM|SRAM|dram\\d_\\d_seg)' overflowed by", log_msg)
303303
imgtool_overflow_found = re.findall(r"Error: Image size \(.*\) \+ trailer \(.*\) exceeds requested size", log_msg)
304304
if overflow_found and not self.options.overflow_as_errors:
305305
logger.debug("Test skipped due to {} Overflow".format(overflow_found[0]))

0 commit comments

Comments
 (0)