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
Show more breadcrumbs
Peter Sherwood
athena
Commits
86aab113
Commit
86aab113
authored
4 years ago
by
Rafal Bielski
Browse files
Options
Downloads
Patches
Plain Diff
runTrigART: fix issues with running in master--py3
parent
43d91270
No related branches found
Branches containing commit
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/runTrigART.py
+3
-2
3 additions, 2 deletions
Trigger/TrigValidation/TrigValTools/bin/runTrigART.py
with
3 additions
and
2 deletions
Trigger/TrigValidation/TrigValTools/bin/runTrigART.py
+
3
−
2
View file @
86aab113
...
...
@@ -10,6 +10,7 @@ import argparse
import
shutil
import
subprocess
import
json
import
six
from
TrigValTools.TrigARTUtils
import
package_prefix
,
find_scripts
,
remember_cwd
...
...
@@ -121,7 +122,7 @@ def analyse_results(all_test_results):
max_len_col1
=
len
(
max
(
table
.
keys
(),
key
=
len
))
max_len_col2
=
len
(
max
(
table
.
values
(),
key
=
len
))
logging
.
info
(
'
-
'
*
(
max_len_col1
+
max_len_col2
+
7
))
for
k
,
v
in
table
.
iteritems
():
for
k
,
v
in
six
.
iteritems
(
table
):
logging
.
info
(
'
| {col1:<{width1}} | {col2:<{width2}} |
'
.
format
(
col1
=
k
,
width1
=
max_len_col1
,
col2
=
v
,
width2
=
max_len_col2
))
...
...
@@ -199,7 +200,7 @@ def main():
'
export ATLAS_LOCAL_ROOT_BASE=
"
${ATLAS_LOCAL_ROOT_BASE:-/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase}
"'
,
'
source
"
${ATLAS_LOCAL_ROOT_BASE}
"
/user/atlasLocalSetup.sh --quiet
'
,
'
lsetup -q art
'
]
art_cmd
=
'
art.py run --max-jobs={:d} {:s} . results
'
.
format
(
args
.
maxJobs
,
''
if
args
.
verbose
else
'
-q
'
)
art_cmd
=
'
art.py run
--run-all-tests
--max-jobs={:d} {:s} . results
'
.
format
(
args
.
maxJobs
,
'
-v
'
if
args
.
verbose
else
'
-q
'
)
commands
.
append
(
art_cmd
)
cmd
=
'
&&
'
.
join
(
commands
)
logging
.
info
(
"
Executing ART command: %s
"
,
art_cmd
)
...
...
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