|
|
@@ -7,7 +7,7 @@ function run_tests() {
|
|
|
local version=$1
|
|
|
|
|
|
ccm create test -v binary:$version -n $clusterSize -d --vnodes
|
|
|
-
|
|
|
+
|
|
|
sed -i '/#MAX_HEAP_SIZE/c\MAX_HEAP_SIZE="256M"' ~/.ccm/repository/$version/conf/cassandra-env.sh
|
|
|
sed -i '/#HEAP_NEWSIZE/c\HEAP_NEWSIZE="100M"' ~/.ccm/repository/$version/conf/cassandra-env.sh
|
|
|
|
|
|
@@ -15,7 +15,7 @@ function run_tests() {
|
|
|
ccm start -v
|
|
|
ccm status
|
|
|
ccm node1 nodetool status
|
|
|
-
|
|
|
+
|
|
|
local proto=2
|
|
|
if [[ $version == 1.2.* ]]; then
|
|
|
proto=1
|
|
|
@@ -25,7 +25,7 @@ function run_tests() {
|
|
|
|
|
|
go test -timeout 5m -tags integration -cover -v -runssl -proto=$proto -rf=3 -cluster=$(ccm liveset) -clusterSize=$clusterSize -autowait=2000ms ./... | tee results.txt
|
|
|
|
|
|
- if [ ${PIPESTATUS[0]} -ne 0 ]; then
|
|
|
+ if [ ${PIPESTATUS[0]} -ne 0 ]; then
|
|
|
echo "--- FAIL: ccm status follows:"
|
|
|
ccm status
|
|
|
ccm node1 nodetool status
|
|
|
@@ -43,4 +43,5 @@ function run_tests() {
|
|
|
fi
|
|
|
ccm clear
|
|
|
}
|
|
|
+
|
|
|
run_tests $1
|