Skip to content
Snippets Groups Projects
Commit b948092a authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Always use CTestXML2HTML from LbDevTools

parent 4563d8fc
No related branches found
No related tags found
1 merge request!274Support new Gaudi CMake
Pipeline #1338439 passed
......@@ -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)
......
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