sanitycheck: report overflow on SRAM overflow
Instead of failing, report overflow when the SRAM overflows. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
bdffb88950
commit
4522e10d65
1 changed files with 4 additions and 6 deletions
|
@ -1834,14 +1834,12 @@ class CMake():
|
|||
with open(os.path.join(self.build_dir, self.log), "a") as log:
|
||||
log.write(log_msg)
|
||||
|
||||
overflow_flash = "region `FLASH' overflowed by"
|
||||
overflow_ram = "region `RAM' overflowed by"
|
||||
|
||||
if log_msg:
|
||||
if log_msg.find(overflow_flash) > 0 or log_msg.find(overflow_ram) > 0:
|
||||
logger.debug("RAM/ROM Overflow")
|
||||
res = re.findall("region `(FLASH|RAM|SRAM)' overflowed by", log_msg)
|
||||
if res:
|
||||
logger.debug("Test skipped due to {} Overflow".format(res[0]))
|
||||
self.instance.status = "skipped"
|
||||
self.instance.reason = "overflow"
|
||||
self.instance.reason = "{} overflow".format(res[0])
|
||||
else:
|
||||
self.instance.status = "failed"
|
||||
self.instance.reason = "Build failure"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue