Fix build failure in coverage module 19/92019/1
authorIzabela Zawadzka <izabela.zawadzka@nokia.com>
Thu, 25 Jul 2019 15:36:42 +0000 (17:36 +0200)
committerIzabela Zawadzka <izabela.zawadzka@nokia.com>
Thu, 25 Jul 2019 15:36:42 +0000 (17:36 +0200)
xpath command had to be replaced as the versions available for CentOs 7 dont support used options

Signed-off-by: Izabela Zawadzka <izabela.zawadzka@nokia.com>
Issue-ID: DCAEGEN2-1687
Change-Id: I0b9ee73982fa9a348a7822d040ca90435fbc264c

build/hv-collector-coverage/check-coverage.sh

index cfd8f87..192eac7 100755 (executable)
@@ -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() {