Missing flag for tmrg to return 1 in case of warning or error
Depending on the severity of the error, eg, if there is an error message but tmrg is still able to output the TMR code, tmrg will return 0
If would be interesting to add a flag to ensure that tmrg returns 1 in case of error or warning. This is required for most CI jobs.
One workaround, used in the mosaix project, is
(..)
- cd mosaix
- tmake mosaix_rtl-tmr &> >(tee tmr.log)
- if grep -q "\[WARNING\] " tmr.log; then exit 1; fi
- if grep -q "\[ERROR \] " tmr.log; then exit 1; fi
edit: I will populate with a working example