From 0c8e1f8d04c68cc4b785df38410986e3b20564fe Mon Sep 17 00:00:00 2001 From: Izabela Zawadzka Date: Thu, 25 Jul 2019 17:36:42 +0200 Subject: 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 --- build/hv-collector-coverage/check-coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/hv-collector-coverage') 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() { -- cgit 1.2.3-korg