30,31d29
< import logging
<
32a31
> import re
46c45,55
< logging.info('Exiting @ tick %i because %s', m5.curTick(), cause)
---
>
> result = kernel.sc_main_result()
> if result.code != 0:
> # Arguably this should make gem5 fail, but some tests purposefully
> # generate errors, and as long as their output matches that's still
> # considered correct. A "real" systemc config should expect sc_main
> # (if present) not to fail.
> scrubbed = re.sub(r'In file: .*$',
> 'In file: <removed by verify.pl>',
> result.message)
> print('\n' + scrubbed)