From: Izabela Zawadzka Date: Thu, 25 Jul 2019 15:36:42 +0000 (+0200) Subject: Fix build failure in coverage module X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F92019%2F1;p=dcaegen2%2Fcollectors%2Fhv-ves.git Fix build failure in coverage module xpath command had to be replaced as the versions available for CentOs 7 dont support used options Signed-off-by: Izabela Zawadzka Issue-ID: DCAEGEN2-1687 Change-Id: I0b9ee73982fa9a348a7822d040ca90435fbc264c --- diff --git a/build/hv-collector-coverage/check-coverage.sh b/build/hv-collector-coverage/check-coverage.sh index cfd8f87f..192eac70 100755 --- a/build/hv-collector-coverage/check-coverage.sh +++ b/build/hv-collector-coverage/check-coverage.sh @@ -8,7 +8,7 @@ LOG_FILE=target/check-coverage.log function coverage_from_report() { local xpath_expr="string(/report/counter[@type='INSTRUCTION']/@$1)" - xpath -q -e "$xpath_expr" "$JACOCO_REPORT" 2>> ${LOG_FILE} + xmllint --xpath "${xpath_expr}" "$JACOCO_REPORT" 2>> ${LOG_FILE} } function check_preconditions() {