Skip to content
Snippets Groups Projects
Commit f73f761a authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

HLTUtils: fix unit test for clang build

Our clang builds are currently building against the gcc tdaq builds and
there is not 'clang' platform tag in OKS. Simply revert to a (random)
existing tag to make the SW repository generation work. But this will
obviously not be usable in a partition.

Fixes ATR-22849.
parent 73ca7e17
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python #!/usr/bin/env python
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
import optparse import optparse
import os import os
# Make sure getoutput() is in the subprocess module.
from future import standard_library
standard_library.install_aliases()
import pm.project import pm.project
import pm.common import pm.common
...@@ -107,11 +103,19 @@ apps = [ ...@@ -107,11 +103,19 @@ apps = [
] ]
# Workaround for clang build (ATR-22849)
try:
tag = pm.common.tdaqRepository.getObject('Tag',hltOksUtils.platform())
except RuntimeError:
tag = pm.common.tdaqRepository.getObject('Tag')[0]
print('Cannot find tag %s in OKS. Using %s instead. Please fix manually.' %
(hltOksUtils.platform(), tag.id))
hltRep = dal.SW_Repository('%s-Repository' % prefix, hltRep = dal.SW_Repository('%s-Repository' % prefix,
Name=('%s-Repository' % prefix), Name=('%s-Repository' % prefix),
InstallationPath="%s/InstallArea" % os.environ.get('AtlasArea'), InstallationPath="%s/InstallArea" % os.environ.get('AtlasArea'),
SW_Objects=apps, SW_Objects=apps,
Tags=[pm.common.tdaqRepository.getObject('Tag',hltOksUtils.platform())], Tags=[tag],
ISInfoDescriptionFiles=[os.path.join(platform,'share/data/daq/schema/is_trigconf_hlt.schema.xml')], ISInfoDescriptionFiles=[os.path.join(platform,'share/data/daq/schema/is_trigconf_hlt.schema.xml')],
AddProcessEnvironment = swvars AddProcessEnvironment = swvars
) )
......
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