- match = "%s/%s/test/%s" % (decoders_dir, op['pd'], op['match'])
- diff = diff_files(match, outfile)
- if diff:
- results[-1]['diff'] = diff
+ elif p.returncode != 0:
+ # runtc indicated an error, but didn't output a
+ # message on stderr about it
+ results[-1]['error'] = "Unknown error: runtc %d" % p.returncode
+ # Only bother with the diff if it all worked.
+ if 'error' not in results[-1]:
+ match = "%s/%s/test/%s" % (decoders_dir, op['pd'], op['match'])
+ diff = diff_files(match, outfile)
+ if diff:
+ results[-1]['diff'] = diff