File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ WORKSPACE=${WORKSPACE} # Needs to be exported in master script
5
5
CACHED=${WORKSPACE} /CACHED # Where cached PR metadata etc are kept
6
6
BUILD_DIR=testBuildDir
7
7
RESULTS_DIR=$WORKSPACE /testsResults
8
+ PR_TESTING_DIR=$( dirname $BASH_SOURCE )
8
9
export PYTHONUNBUFFERED=1
9
10
export CMSBOT_PYTHON_CMD=$( which python3 > /dev/null 2>&1 && echo python3 || echo python)
10
11
# -----
@@ -192,10 +193,6 @@ function get_result_file_name () {
192
193
}
193
194
194
195
function get_gpu_matrix_args() {
195
- GPU_FLAG=" "
196
- if runTheMatrix.py --help | grep -q ' \-\-gpu' ; then
197
- GPU_FLAG=" --gpu required"
198
- fi
199
- OPTS=" -w gpu ${GPU_FLAG} "
196
+ OPTS=$( PYTHONPATH=${PR_TESTING_DIR} /.. ${CMSBOT_PYTHON_CMD} -c ' from RelValArgs import GPU_RELVALS_FLAGS;print(GPU_RELVALS_FLAGS)' )
200
197
echo ${OPTS}
201
198
}
You can’t perform that action at this time.
0 commit comments