record_results.py: do not record results of the tests interrupted with Ctrl-C

This commit is contained in:
Denis Bilenko
2008-11-24 14:13:08 +06:00
parent be6f0702e1
commit 115a9ad541

View File

@@ -38,8 +38,9 @@ def main():
print arg, 'finished with code', returncode
stdout = file(output_name).read()
if not debug:
record(changeset, argv, stdout, returncode)
os.unlink(output_name)
if returncode!=1:
record(changeset, argv, stdout, returncode)
os.unlink(output_name)
sys.exit(returncode)
if __name__=='__main__':