You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2020/04/29 19:12:23 UTC

[cassandra] branch cassandra-3.0 updated: Use different package names for the cqlsh-tests matrix values, so final aggregated test reports are distinguished

This is an automated email from the ASF dual-hosted git repository.

mck pushed a commit to branch cassandra-3.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/cassandra-3.0 by this push:
     new ed62641  Use different package names for the cqlsh-tests matrix values, so final aggregated test reports are distinguished
ed62641 is described below

commit ed62641748fbea4c98d16ea4fe386450475fdac9
Author: Mick Semb Wever <mc...@apache.org>
AuthorDate: Wed Apr 29 21:07:33 2020 +0200

    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
---
 pylib/cassandra-cqlsh-tests.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/pylib/cassandra-cqlsh-tests.sh b/pylib/cassandra-cqlsh-tests.sh
index 1fb3aa0..8174636 100755
--- a/pylib/cassandra-cqlsh-tests.sh
+++ b/pylib/cassandra-cqlsh-tests.sh
@@ -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
 
 ################################


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org