From 59264d59cceb6e87202a835796993e813af3888e Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Mon, 19 Dec 2022 11:11:27 -0800 Subject: [PATCH 1/2] Test using stock gcovr Signed-off-by: Saikrishna Arcot --- .azure-pipelines/build-template.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index f37b7d9bc..2ad052a13 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -166,16 +166,6 @@ jobs: sudo service rsyslog restart displayName: "Update rsyslog.conf" - ${{ if eq(parameters.run_unit_test, true) }}: - - script: | - set -ex - git clone https://github.com/Spacetown/gcovr.git - cd gcovr/ - git checkout origin/recursive_search_file - sudo pip3 install setuptools - sudo python3 setup.py install - cd .. - sudo rm -rf gcovr - displayName: "Install gcovr 5.0 with recursive fix" - script: | set -ex # Add SYS_TIME capability for settimeofday ok in syncd test From a0bf439fc9fb1d02231b48b1a8a22823cb91308a Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Mon, 19 Dec 2022 12:11:29 -0800 Subject: [PATCH 2/2] Use gcovr 5.2 Signed-off-by: Saikrishna Arcot --- .azure-pipelines/build-template.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.azure-pipelines/build-template.yml b/.azure-pipelines/build-template.yml index 2ad052a13..ba4b4e846 100644 --- a/.azure-pipelines/build-template.yml +++ b/.azure-pipelines/build-template.yml @@ -166,6 +166,16 @@ jobs: sudo service rsyslog restart displayName: "Update rsyslog.conf" - ${{ if eq(parameters.run_unit_test, true) }}: + - script: | + set -ex + git clone https://github.com/gcovr/gcovr.git + cd gcovr/ + git checkout 5.2 + sudo pip3 install setuptools + sudo python3 setup.py install + cd .. + sudo rm -rf gcovr + displayName: "Install gcovr 5.2 (for --exclude-throw-branches support)" - script: | set -ex # Add SYS_TIME capability for settimeofday ok in syncd test