|
@@ -24,10 +24,9 @@ function run_tests() {
|
|
|
proto=1
|
|
proto=1
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- go test -tags integration -cover -v -runssl -proto=$proto -rf=3 -cluster=$(ccm liveset) -clusterSize=$clusterSize -autowait=2000ms ./... > results
|
|
|
|
|
|
|
+ go test -tags integration -cover -v -runssl -proto=$proto -rf=3 -cluster=$(ccm liveset) -clusterSize=$clusterSize -autowait=2000ms ./... | tee results.txt
|
|
|
|
|
|
|
|
- cat results
|
|
|
|
|
- cover=`cat results | 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
|