record_results.py: do not record results of the tests interrupted with Ctrl-C
This commit is contained in:
@@ -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__':
|
||||||
|
Reference in New Issue
Block a user