Skip to content

Commit

Permalink
ci: Run test against kcov instead of a shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed May 5, 2024
1 parent 4842cc7 commit 62d0be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generic-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ run () {
fi

chmod u+x .github/workflows/test-executable.sh
kcov --include-pattern=test-executable.sh coverage .github/workflows/test-executable.sh
kcov --include-pattern=configuration.cc coverage /usr/local/bin/kcov

local coverage="$(<coverage/test-executable.sh/coverage.json)"
local coverage="$(<coverage/kcov/coverage.json)"
local percent="${coverage##*percent_covered\": \"}"
local total_lines="${coverage##*total_lines\": }"
local covered_lines="${coverage##*covered_lines\": }"
Expand Down

0 comments on commit 62d0be5

Please sign in to comment.