Skip to content
Snippets Groups Projects

Support new Gaudi CMake

Merged Marco Clemencic requested to merge support-new-gaudi-cmake into master
1 file
+ 10
9
Compare changes
  • Side-by-side
  • Inline
@@ -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)
Loading