Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Ran Bi
athena
Commits
bd5b6e09
Commit
bd5b6e09
authored
5 years ago
by
Rafal Bielski
Browse files
Options
Downloads
Patches
Plain Diff
Fix summary ordering in runTrigCI.py
parent
7ada8205
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Trigger/TrigValidation/TrigValTools/bin/runTrigCI.py
+4
-2
4 additions, 2 deletions
Trigger/TrigValidation/TrigValTools/bin/runTrigCI.py
with
4 additions
and
2 deletions
Trigger/TrigValidation/TrigValTools/bin/runTrigCI.py
+
4
−
2
View file @
bd5b6e09
...
@@ -11,6 +11,8 @@ import logging
...
@@ -11,6 +11,8 @@ import logging
import
argparse
import
argparse
import
subprocess
import
subprocess
import
errno
import
errno
from
six
import
iteritems
from
collections
import
OrderedDict
from
TrigValTools.TrigARTUtils
import
find_scripts
,
remember_cwd
from
TrigValTools.TrigARTUtils
import
find_scripts
,
remember_cwd
...
@@ -83,7 +85,7 @@ def main():
...
@@ -83,7 +85,7 @@ def main():
format
=
'
========== %(levelname)-8s %(message)s
'
,
format
=
'
========== %(levelname)-8s %(message)s
'
,
level
=
logging
.
DEBUG
if
args
.
verbose
else
logging
.
INFO
)
level
=
logging
.
DEBUG
if
args
.
verbose
else
logging
.
INFO
)
results
=
{}
results
=
OrderedDict
()
max_name_len
=
0
max_name_len
=
0
for
script
in
args
.
scripts
:
for
script
in
args
.
scripts
:
logging
.
debug
(
'
PROCESSING SCRIPT %s
'
,
script
)
logging
.
debug
(
'
PROCESSING SCRIPT %s
'
,
script
)
...
@@ -115,7 +117,7 @@ def main():
...
@@ -115,7 +117,7 @@ def main():
logging
.
info
(
'
RESULTS SUMMARY:
'
)
logging
.
info
(
'
RESULTS SUMMARY:
'
)
logging
.
info
(
'
=
'
*
(
max_name_len
+
11
))
logging
.
info
(
'
=
'
*
(
max_name_len
+
11
))
final_code
=
0
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
)
logging
.
info
(
'
| %s : %4d |
'
,
'
{:{width}s}
'
.
format
(
script
,
width
=
max_name_len
),
result
)
if
abs
(
result
)
>
final_code
:
if
abs
(
result
)
>
final_code
:
final_code
=
abs
(
result
)
final_code
=
abs
(
result
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment