/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/PythonFramework/test/runPythonTests.sh
17 строк
434 B
Shahzad Malik Muzaffar
[CORE] Various fixes/improvements for unit test
22 мар 2023, 20:11
22 мар 2023, 20:11
6fa8be9
Код
Авторство
О чём код?
#!/bin/sh -ex # Pass in name and status function die { echo $1: status $2 ; exit $2; } python_cmd="python3" for file in ${CMSSW_BASE}/src/FWCore/PythonFramework/python/*.py do bn=`basename $file` if [ "$bn" != "__init__.py" ]; then ${python_cmd} "$file" || die "unit tests for $bn failed" $? fi done echo "running test_producer.py" ${python_cmd} ${SCRAM_TEST_PATH}/test_producer.py || die "test_producer.py failed" $?