Skip to content

Commit

Permalink
fix unittest error
Browse files Browse the repository at this point in the history
Signed-off-by: pettershao-ragilenetworks <[email protected]>
  • Loading branch information
pettershao-ragilenetworks authored and sdk committed Nov 3, 2022
1 parent 348bf31 commit 37326be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .azure-pipelines/gcov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ jobs:
sudo apt-get install -y lcov
displayName: "Install dependencies"
condition: eq('${{ parameters.archive_gcov }}', true)
- task: DownloadPipelineArtifact@2
inputs:
artifact: ${{ parameters.sairedis_artifact_name }}
displayName: "Download sonic sairedis deb packages"
- task: DownloadPipelineArtifact@2
inputs:
artifact: ${{ parameters.artifact_name }}
Expand All @@ -64,6 +68,7 @@ jobs:
set -x
ls -lh
sudo tar -zxvf sonic-gcov.tar.gz
sudo cp unittest_total.info sonic-gcov/
sudo cp -rf sonic-gcov $(Build.ArtifactStagingDirectory)
sudo rm sonic-gcov.tar.gz
ls -lh
Expand Down
3 changes: 3 additions & 0 deletions gcov_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ lcov_merge_all()

sed -i "s#common_work/#$1/common_work/#" coverage.xml

echo " === check unittest_total.info === "
ls -l unittest_total.info

cd gcov_output/
if [ ! -d ${ALLMERGE_DIR} ]; then
mkdir -p ${ALLMERGE_DIR}
Expand Down

0 comments on commit 37326be

Please sign in to comment.