Merge pull request #186 from gblomqvist/master

Write XML ending to correct file when using --xml
pull/200/head
lanjelot 7 months ago committed by GitHub
commit 97a694f17d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -899,8 +899,8 @@ def process_logs(queue, indicatorsfmt, argv, log_dir, runtime_file, csv_file, xm
pname, action, args = queue.get()
if action == 'quit':
if log_dir:
with open(os.path.join(log_dir, 'RESULTS.xml'), 'a') as f:
if xml_file or log_dir:
with open(results_xml, 'a') as f:
f.write('</results>\n<stop utc=%s local=%s/>\n</root>\n' % (xmlquoteattr(strfutctime()), xmlquoteattr(strflocaltime())))
break

Loading…
Cancel
Save