Skip to content

Commit

Permalink
Merge pull request #1022 from bernt-matthias/topic/sorted_merge
Browse files Browse the repository at this point in the history
sort tests by id when merging
  • Loading branch information
jmchilton authored Jul 14, 2020
2 parents 5c2e85d + abf7b7e commit 1f44d20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions planemo/galaxy/test/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def merge_reports(input_paths, output_path):
tests = []
for report in reports:
tests.extend(report["tests"])
tests = sorted(tests, key=lambda k: k['id'])
merged_report = {"tests": tests}
with io.open(output_path, mode="w", encoding='utf-8') as out:
out.write(unicodify(json.dumps(merged_report)))
Expand Down

0 comments on commit 1f44d20

Please sign in to comment.