Explorar o código

remove all cmd source files from coverage, make shanker happy

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Shengqi Chen hai 8 meses
pai
achega
ab8d1c2120
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      .github/workflows/tunasync.yml

+ 3 - 1
.github/workflows/tunasync.yml

@@ -230,7 +230,9 @@ jobs:
         "${HOME}/go/bin/gocovmerge" profile.cov profile2.gcov \
           "umlrootfs/home/${CUSER}/profile3.gcov" \
           "umlrootfs/home/${CUSER}/profile4.gcov" \
-          profile5_*.gcov > profile-all.gcov
+          profile5_*.gcov > merged.gcov
+        # remove cmdline tools from coverage statistics
+        grep -v "cmd/.*\.go" merged.gcov > profile-all.gcov
 
     - name: Convert coverage to lcov
       uses: jandelgado/gcov2lcov-action@v1