File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 49
49
variables :
50
50
DIFF_COVER_CHECK_THRESHOLD : 0
51
51
DIFF_COVER_ENABLE : ' true'
52
- DIFF_COVER_WORKING_DIRECTORY : $(System.DefaultWorkingDirectory)/gcov/
53
52
54
53
container :
55
54
image : sonicdev-microsoft.azurecr.io:443/${{ parameters.sonic_slave }}:latest
@@ -106,8 +105,7 @@ jobs:
106
105
sudo ./gcov_support.sh generate
107
106
sudo ./gcov_support.sh merge_container_info $(Build.ArtifactStagingDirectory)
108
107
sudo cp -rf gcov_output $(Build.ArtifactStagingDirectory)
109
- mkdir -p $(System.DefaultWorkingDirectory)/gcov
110
- sudo cp -rf $(Build.ArtifactStagingDirectory)/gcov_output/AllMergeReport/* $(System.DefaultWorkingDirectory)/gcov/
108
+ sudo cp -rf $(Build.ArtifactStagingDirectory)/gcov_output/AllMergeReport/coverage.xml $(System.DefaultWorkingDirectory)/
111
109
ls -lh $(Build.ArtifactStagingDirectory)
112
110
popd
113
111
workingDirectory: $(Pipeline.Workspace)
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ include /usr/share/dpkg/default.mk
29
29
30
30
ifeq ($(ENABLE_GCOV ) , y)
31
31
override_dh_auto_configure :
32
- dh_auto_configure -- --enable-gcov
32
+ dh_auto_configure -- --enable-gcov CFLAGS= " -g -O0 " CXXFLAGS= " -g -O0 "
33
33
endif
34
34
35
35
override_dh_auto_install :
Original file line number Diff line number Diff line change @@ -146,7 +146,8 @@ lcov_merge_all()
146
146
cp $1 /lcov_cobertura.py $1 /common_work/gcov/
147
147
python $1 /common_work/gcov/lcov_cobertura.py total.info -o coverage.xml
148
148
149
- sed -i " s#common_work/#$1 /common_work/#" coverage.xml
149
+ sed -i " s#common_work/gcov/##" coverage.xml
150
+ sed -i " s#common_work.gcov.##" coverage.xml
150
151
151
152
cd gcov_output/
152
153
if [ ! -d ${ALLMERGE_DIR} ]; then
You can’t perform that action at this time.
0 commit comments