Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LbNightlyTools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
LHCb Core Software
LbNightlyTools
Commits
b948092a
Commit
b948092a
authored
5 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
Always use CTestXML2HTML from LbDevTools
parent
4563d8fc
No related branches found
No related tags found
1 merge request
!274
Support new Gaudi CMake
Pipeline
#1338439
passed
5 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/LbNightlyTools/Scripts/Test.py
+10
-9
10 additions, 9 deletions
python/LbNightlyTools/Scripts/Test.py
with
10 additions
and
9 deletions
python/LbNightlyTools/Scripts/Test.py
+
10
−
9
View file @
b948092a
...
...
@@ -30,6 +30,11 @@ from LbPlatformUtils import requires
from
LbNightlyTools.Scripts.Common
import
BaseScript
from
LbDevTools
import
DATA_DIR
CTEST_CONVERTER
=
os
.
path
.
join
(
DATA_DIR
,
'
cmake
'
,
'
CTestXML2HTML
'
)
if
not
os
.
path
.
exists
(
CTEST_CONVERTER
):
CTEST_CONVERTER
=
None
def
fixFailureCauses
(
summary_file
):
'''
...
...
@@ -194,16 +199,12 @@ class Script(BaseScript):
for
proj
,
_
in
self
.
slot
.
testGen
(
projects
=
opts
.
projects
,
before
=
before
,
jobs
=
opts
.
jobs
):
# Always use the most recent CTEST_CONVERTER, if available
html_src
=
self
.
_buildDir
(
proj
,
'
build
'
,
'
html
'
)
if
not
os
.
path
.
exists
(
html_src
):
# the build tool did not generate the HTML summary,
# let's do it now (if possible)
from
LbDevTools
import
DATA_DIR
ctest_converter
=
os
.
path
.
join
(
DATA_DIR
,
'
cmake
'
,
'
CTestXML2HTML
'
)
if
os
.
path
.
exists
(
ctest_converter
):
call
([
ctest_converter
],
cwd
=
self
.
_buildDir
(
proj
,
'
build
'
))
if
CTEST_CONVERTER
:
if
os
.
path
.
exists
(
html_src
):
shutil
.
rmtree
(
html_src
)
call
([
CTEST_CONVERTER
],
cwd
=
self
.
_buildDir
(
proj
,
'
build
'
))
summary_json
=
os
.
path
.
join
(
html_src
,
'
summary.json
'
)
fixFailureCauses
(
summary_json
)
...
...
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