Use different package names for the cqlsh-tests matrix values, so final aggregated test reports are distinguished

patch by Mick Semb Wever; reviewed by David Capwell for CASSANDRA-15729
This commit is contained in:
Mick Semb Wever 2020-04-29 21:07:33 +02:00
parent 469c6496ae
commit ed62641748
No known key found for this signature in database
GPG Key ID: E91335D77E3E87CB
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ export CCM_HEAP_NEWSIZE="200M"
export CCM_CONFIG_DIR=${WORKSPACE}/.ccm
export NUM_TOKENS="32"
export CASSANDRA_DIR=${WORKSPACE}
export TESTSUITE_NAME="cqlshlib.python2.jdk8"
# Loop to prevent failure due to maven-ant-tasks not downloading a jar..
for x in $(seq 1 3); do
@ -45,9 +46,12 @@ pip install -r ${CASSANDRA_DIR}/pylib/requirements.txt
pip freeze
if [ "$cython" = "yes" ]; then
TESTSUITE_NAME="${TESTSUITE_NAME}.cython"
pip install "Cython>=0.20,<0.25"
cd pylib/; python setup.py build_ext --inplace
cd ${WORKSPACE}
else
TESTSUITE_NAME="${TESTSUITE_NAME}.no_cython"
fi
################################
@ -85,6 +89,9 @@ set +e # disable immediate exit from this point
nosetests
ccm remove
# hack around --xunit-prefix-with-testsuite-name not being available in nose 1.3.7
sed -i "s/testsuite name=\"nosetests\"/testsuite name=\"${TESTSUITE_NAME}\"/g" nosetests.xml
sed -i "s/testcase classname=\"cqlshlib./testcase classname=\"${TESTSUITE_NAME}./g" nosetests.xml
mv nosetests.xml ${WORKSPACE}/cqlshlib.xml
################################