Skip to content

Commit

Permalink
Merge pull request #34475 from smuzaffar/py3-fix-CMSCommonData
Browse files Browse the repository at this point in the history
CMSCommonData: use python3 in unit test
  • Loading branch information
cmsbuild authored Jul 14, 2021
2 parents 473aa57 + 5101be0 commit 825b2af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Geometry/CMSCommonData/test/run_DOMCount.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python
#! /usr/bin/env python3

from __future__ import print_function
from FWCore.ParameterSet.pfnInPath import pfnInPath
Expand Down
2 changes: 1 addition & 1 deletion Geometry/CMSCommonData/test/run_DOMCount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cfiFiles="${cfiFiles} Geometry/CMSCommonData/cmsExtendedGeometryXML_cfi"
cfiFiles="${cfiFiles} Geometry/CMSCommonData/cmsExtendedGeometryZeroMaterialXML_cfi"

# automatically retrieve active phase 2 geometries
read -a DETS <<< $(python -c 'from Configuration.Geometry.dict2026Geometry import detectorVersionDict; print " ".join(sorted([x[1] for x in detectorVersionDict.items()]))')
read -a DETS <<< $(python3 -c 'from Configuration.Geometry.dict2026Geometry import detectorVersionDict; print " ".join(sorted([x[1] for x in detectorVersionDict.items()]))')
for DET in ${DETS[@]}; do
cfiFiles="${cfiFiles} Geometry/CMSCommonData/cmsExtendedGeometry2026${DET}XML_cfi"
done
Expand Down

0 comments on commit 825b2af

Please sign in to comment.