- if ret != 0:
- if os.path.exists("_canttest"):
- log.message = file("_canttest").read()
- log.canttest = 1
- elif os.path.exists("_error"):
+ if os.path.exists("_canttest"):
+ log.message = file("_canttest").read()
+ log.canttest = 1
+ ret = 2 # If Makefile sets canttest, override the exit code which might be zero
+ log.exitcode = ret
+ elif ret != 0:
+ if os.path.exists("_error"):