Skip to content
Snippets Groups Projects
Commit e61e960e authored by ManosAngelidis's avatar ManosAngelidis Committed by Antoine Detailleur
Browse files

[NRRPLT-8066] Removed sudo from cobertura script

parent ae32da74
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,6 @@ if [ -z "$NRP_COVERAGE_LINE" ]; then echo "nrp_cobertura_check: NRP_COVERAGE_LIN
coverage_file="$1"
sudo apt-get update && sudo apt-get install -y libxml2-utils bc
apt-get update && apt-get install -y libxml2-utils bc
covrate=$(xmllint --xpath "string(//coverage/@branch-rate)" "$coverage_file") && covrate=$(bc <<< "$covrate * 100") && if (( $(bc <<< "$covrate < $NRP_COVERAGE_BRANCH") )); then echo "COVERAGE FAILED branch rate $covrate is lower than $NRP_COVERAGE_BRANCH";exit 1;else echo "COVERAGE branch rate is $covrate";fi
covrate=$(xmllint --xpath "string(//coverage/@line-rate)" "$coverage_file") && covrate=$(bc <<< "$covrate * 100") && if (( $(bc <<< "$covrate < $NRP_COVERAGE_LINE") )); then echo "COVERAGE FAILED line rate $covrate is lower than $NRP_COVERAGE_LINE";exit 1;else echo "COVERAGE line rate is $covrate";fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment