Ver Fonte

Tee the test result to the Travis output

Ben Hood há 11 anos atrás
pai
commit
5834cd13a5
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      integration.sh

+ 2 - 3
integration.sh

@@ -24,10 +24,9 @@ function run_tests() {
 		proto=1
 	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
 		echo "--- FAIL: expected coverage of at least 60 %, but coverage was $cover %"
 		exit 1