Skip to content
Snippets Groups Projects
Commit 392ccf23 authored by Fabrice Le Goff's avatar Fabrice Le Goff
Browse files

migration to tdaq-09-04-00

parent f0148720
No related branches found
No related tags found
No related merge requests found
Pipeline #3162010 passed
#!/bin/bash #!/bin/bash
# this script is made to run in docker cd `dirname $0`
# NOT MIGRATED TO tdaq-09-04-00: pylint from LCG 101 does not work:
# https://cern.service-now.com/service-portal?id=ticket&table=incident&n=INC2920656
if ! [ -v TDAQ_LCG_RELEASE ]; then if ! [ -v TDAQ_LCG_RELEASE ]; then
source /cvmfs/atlas.cern.ch/repo/sw/tdaq/tools/cmake_tdaq/bin/cm_setup.sh tdaq-09-03-00 source /cvmfs/atlas.cern.ch/repo/sw/tdaq/tools/cmake_tdaq/bin/cm_setup.sh tdaq-09-03-00
fi fi
...@@ -10,8 +13,3 @@ fi ...@@ -10,8 +13,3 @@ fi
# Don't ask me why but re-importing LCG view env does the job # Don't ask me why but re-importing LCG view env does the job
source /cvmfs/sft.cern.ch/lcg/views/$TDAQ_LCG_RELEASE/$CMTCONFIG/setup.sh source /cvmfs/sft.cern.ch/lcg/views/$TDAQ_LCG_RELEASE/$CMTCONFIG/setup.sh
pylint $(find . -name '*.py' -a -not -name config.py) pylint $(find . -name '*.py' -a -not -name config.py)
# This gets the latest version of pylint from LCG *releases* for the LCG version
# associated with the sources TDAQ release
#PYLINT_LATEST_VERSION=`ls -t1 /cvmfs/sft.cern.ch/lcg/releases/$TDAQ_LCG_RELEASE/pylint/ | head -n 1`
#/cvmfs/sft.cern.ch/lcg/releases/$TDAQ_LCG_RELEASE/pylint/$PYLINT_LATEST_VERSION/$CMTCONFIG/bin/pylint $(find . -name '*.py' -a -not -name config.py)
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
cd `dirname $0` cd `dirname $0`
if ! [ -v TDAQ_LCG_RELEASE ]; then if ! [ -v TDAQ_LCG_RELEASE ]; then
source /cvmfs/atlas.cern.ch/repo/sw/tdaq/tools/cmake_tdaq/bin/cm_setup.sh nightly source script_setup.sh
fi fi
python UnitTests/TestSuite_UnitTests.py python UnitTests/TestSuite_UnitTests.py
......
#!/bin/bash #!/bin/bash
TDAQ_RELEASE=tdaq-09-03-00 TDAQ_RELEASE=tdaq-09-04-00
echo "setting up environment for centos, tdaq release: $TDAQ_RELEASE" echo "setting up environment for centos, tdaq release: $TDAQ_RELEASE"
source /sw/tdaq/setup/setup_$TDAQ_RELEASE.sh source /sw/tdaq/setup/setup_$TDAQ_RELEASE.sh
...@@ -16,13 +16,3 @@ echo "found xrootd version: $XROOTD_VERSION" ...@@ -16,13 +16,3 @@ echo "found xrootd version: $XROOTD_VERSION"
# Add path for xrdcp binary matching this release # Add path for xrdcp binary matching this release
export PATH="$LCG_INST_PATH/$TDAQ_LCG_RELEASE/xrootd/$XROOTD_VERSION/$CMTCONFIG/bin/:$PATH" export PATH="$LCG_INST_PATH/$TDAQ_LCG_RELEASE/xrootd/$XROOTD_VERSION/$CMTCONFIG/bin/:$PATH"
# Extend python path for externals (mailinglogger)
# the most recently modified directory (-t) is selected if there are multiple ones
PYTHON_DIRS=`ls -d -1 -t /sw/atlas/tdaq/$TDAQ_VERSION/installed/external/$CMTCONFIG/lib/python*/site-packages/ 2>/dev/null`
if [ $? -ne 0 ]; then
echo "error: cannot find external python packages in /sw/atlas/tdaq/$TDAQ_VERSION/installed/external/$CMTCONFIG/lib/python*/site-packages/"
return 1
fi
EXTERNAL_PYTHON_DIR=`echo "$PYTHON_DIRS" | head -n 1`
export PYTHONPATH="$PYTHONPATH:$EXTERNAL_PYTHON_DIR"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment