|
@@ -21,7 +21,9 @@ function run_tests() {
|
|
|
proto=1
|
|
proto=1
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- go test -timeout 3m -tags integration -cover -v -runssl -proto=$proto -rf=3 -cluster=$(ccm liveset) -clusterSize=$clusterSize -autowait=2000ms ./... | tee results.txt || {
|
|
|
|
|
|
|
+ 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
|
|
|
echo "--- FAIL: ccm status follows:"
|
|
echo "--- FAIL: ccm status follows:"
|
|
|
ccm status
|
|
ccm status
|
|
|
ccm node1 nodetool status
|
|
ccm node1 nodetool status
|
|
@@ -29,9 +31,10 @@ function run_tests() {
|
|
|
cat status.log
|
|
cat status.log
|
|
|
echo "--- FAIL: Received a non-zero exit code from the go test execution, please investigate this"
|
|
echo "--- FAIL: Received a non-zero exit code from the go test execution, please investigate this"
|
|
|
exit 1
|
|
exit 1
|
|
|
- }
|
|
|
|
|
|
|
+ fi
|
|
|
|
|
|
|
|
cover=`cat results.txt | grep coverage: | grep -o "[0-9]\{1,3\}" | head -n 1`
|
|
cover=`cat results.txt | grep coverage: | grep -o "[0-9]\{1,3\}" | head -n 1`
|
|
|
|
|
+
|
|
|
if [[ $cover -lt "60" ]]; then
|
|
if [[ $cover -lt "60" ]]; then
|
|
|
echo "--- FAIL: expected coverage of at least 60 %, but coverage was $cover %"
|
|
echo "--- FAIL: expected coverage of at least 60 %, but coverage was $cover %"
|
|
|
exit 1
|
|
exit 1
|