Skip to content

Commit

Permalink
Merge "FAB-8628 fix code coverage report issue"
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rWin authored and Gerrit Code Review committed Mar 5, 2018
2 parents f78e0ab + 7ba1ffe commit 0103f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit-test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ run_tests() {
# profile reports can only be generated one package at a time.
run_tests_with_coverage() {
# Initialize profile.cov
echo "mode: set" > profile.cov
for pkg in $@; do
:> profile_tmp.cov
go test -cover -coverprofile=profile_tmp.cov -tags "$GO_TAGS" -ldflags "$GO_LDFLAGS" $pkg -timeout=20m
Expand Down Expand Up @@ -123,6 +122,7 @@ main() {
if [ -z "${packages}" ]; then
echo "Nothing to test!!!"
elif [ "${JOB_TYPE}" = "PROFILE" ]; then
echo "mode: set" > profile.cov
run_tests_with_coverage "${packages[@]}"
GO_TAGS="${GO_TAGS} pluginsenabled" run_tests_with_coverage "${plugin_packages[@]}"
else
Expand Down

0 comments on commit 0103f32

Please sign in to comment.