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 print arg, 'finished with code', returncode
stdout = file(output_name).read() stdout = file(output_name).read()
if not debug: if not debug:
record(changeset, argv, stdout, returncode) if returncode!=1:
os.unlink(output_name) record(changeset, argv, stdout, returncode)
os.unlink(output_name)
sys.exit(returncode) sys.exit(returncode)
if __name__=='__main__': if __name__=='__main__':