Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh

# Pass in name and status
function die { echo $1: status $2 ;  exit $2; }

for file in ${CMSSW_BASE}/src/FWCore/ParameterSet/python/*.py
do
  bn=`basename $file`
  if [ "$bn" != "__init__.py" ]; then
     bnm=${bn%.*} 
     python3 -m FWCore.ParameterSet."$bnm" || die "unit tests for $bn failed" $?
  fi
done