Skip to content
Snippets Groups Projects
Commit 99d8a306 authored by Ruth Pottgen's avatar Ruth Pottgen
Browse files

Merge branch 'cherry-pick-6189bab4-21.0' into '21.0'

Sweeping !31856 from 21.3 to 21.0.
Cherry-pick from master: Fix summary ordering in runTrigCI.py

See merge request atlas/athena!31916
parents 3021fba2 32060ac8
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@ import logging
import argparse
import subprocess
import errno
from six import iteritems
from collections import OrderedDict
from TrigValTools.TrigARTUtils import find_scripts, remember_cwd
......@@ -83,7 +85,7 @@ def main():
format='========== %(levelname)-8s %(message)s',
level=logging.DEBUG if args.verbose else logging.INFO)
results = {}
results = OrderedDict()
max_name_len = 0
for script in args.scripts:
logging.debug('PROCESSING SCRIPT %s', script)
......@@ -115,7 +117,7 @@ def main():
logging.info('RESULTS SUMMARY:')
logging.info('='*(max_name_len+11))
final_code = 0
for script, result in results.iteritems():
for script, result in iteritems(results):
logging.info('| %s : %4d |', '{:{width}s}'.format(script, width=max_name_len), result)
if abs(result) > final_code:
final_code = abs(result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment