Add some additional information to the fail message based on exit code
This MR adds a new function to the python test library that allows us to bundle additional information to a failBecause
message, based on exit codes.
It basically is a dictionary of exit codes and appropriate messages, although it could be made more flexible if we want to ship additional info that cannot be inferred exclusively from exit codes.