Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPayloadData unit test, if no plugins are found, look in the CMSSW_RELEASE_BASE #34257

Merged
merged 2 commits into from Jun 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions CondCore/Utilities/scripts/getPayloadData.py
Expand Up @@ -124,7 +124,8 @@ def discover_plugins():
plugins = []
releases = [
os.environ.get('CMSSW_BASE', None),
os.environ.get('CMSSW_RELEASE_BASE', None)
os.environ.get('CMSSW_RELEASE_BASE', None),
os.environ.get('CMSSW_FULL_RELEASE_BASE', None)
]

for r in releases:
Expand All @@ -137,7 +138,12 @@ def discover_plugins():
plugins += glob.glob(path + '/plugin*_PayloadInspector.so' )
output('found plugins: ', plugins)

if r: break # break loop if CMSSW_BASE is specified
# If no plugins are found in the local release,
# go find them in the release base (or full release base, in case of patches)
if(len(plugins)==0):
output('# plugins found:',len(plugins))
else:
if r: break # break loop if CMSSW_BASE is specified

# extracts the object name from plugin path:
# /afs/cern.ch/cms/slc6_amd64_gcc493/cms/cmssw/CMSSW_8_0_6/lib/slc6_amd64_gcc493/pluginBasicPayload_PayloadInspector.so
Expand Down