From abf7b7e0cd5a39852ec1b9b65686696c258f6056 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Tue, 7 Jul 2020 21:58:25 +0200 Subject: [PATCH] sort tests by id when merging --- planemo/galaxy/test/actions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/planemo/galaxy/test/actions.py b/planemo/galaxy/test/actions.py index a81e35826..5b4c26cef 100644 --- a/planemo/galaxy/test/actions.py +++ b/planemo/galaxy/test/actions.py @@ -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)))