From 19bb685b984538a2d10d2aeb162ed8d4fb84b6a0 Mon Sep 17 00:00:00 2001 From: stewartboyd119 Date: Mon, 22 Jul 2024 19:54:38 -0700 Subject: [PATCH] Updated coverage report (cover.out instead of omni.out). Needed for codecov.io --- coverage.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/coverage.sh b/coverage.sh index bf35a51..28beca1 100755 --- a/coverage.sh +++ b/coverage.sh @@ -14,7 +14,7 @@ source_res=$topdir/source.res root_out=$topdir/root.out source_out=$topdir/source.out -omni_out=$topdir/omni.out +cover_out=$topdir/cover.out function quit() { echo "Error in coverage.sh. Stopping processing"; @@ -30,12 +30,12 @@ go test -c -coverpkg=$pck1 -covermode=atomic -o "$source_res" $pck2 go tool test2json -t "$source_res" -test.v -test.coverprofile "$source_out" # delete aggregate file -rm "$omni_out" +rm "$cover_out" # combine the results (the first line should be omitted on subsequent appends) -cat "$root_out" >> "$omni_out" -tail -n+2 "$source_out" >> "$omni_out" +cat "$root_out" >> "$cover_out" +tail -n+2 "$source_out" >> "$cover_out" # print aggregated results -go tool cover -func="$omni_out" -go tool cover -html="$omni_out" -o cover.html +go tool cover -func="$cover_out" +go tool cover -html="$cover_out" -o cover.html