Commit 40ca3993 authored by Łukasz Nowak's avatar Łukasz Nowak

Remove read result to avoid needless repetition

parent 67d4b057
...@@ -107,6 +107,8 @@ def main(): ...@@ -107,6 +107,8 @@ def main():
result_file = os.path.abspath(result_file) result_file = os.path.abspath(result_file)
status_dict['command'] = result_file status_dict['command'] = result_file
result = open(result_file).read() result = open(result_file).read()
# remove result, as it is not required anymore
os.unlink(result_file)
print(try_info + ' Analysis of result %r:' % (result_file,)) print(try_info + ' Analysis of result %r:' % (result_file,))
print(try_info + ' ' + result) print(try_info + ' ' + result)
if 'FATAL: all hosts have already failed -- aborting' in result: if 'FATAL: all hosts have already failed -- aborting' in result:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment