From 5a8df1df13601e4d2bd0079f1504b2fb38a93f11 Mon Sep 17 00:00:00 2001 From: "jinhong.kim" Date: Fri, 19 Apr 2024 18:25:44 +0900 Subject: [PATCH] Add coverage.out file after running the test Signed-off-by: jinhong.kim --- scripts/test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test b/scripts/test index bd71213eb7..bf35e6656f 100755 --- a/scripts/test +++ b/scripts/test @@ -19,7 +19,7 @@ echo Packages: "${PACKAGES}" [ "${ARCH}" == "amd64" ] && RACE=-race if [ -n "${TESTS}" ]; then - go test -v "${RACE}" "${args[@]}" ${PACKAGES} -check.f "${TESTS}" + go test -v "${RACE}" "${args[@]}" ${PACKAGES} -check.f "${TESTS}" -coverprofile=coverage.out else - go test -v "${RACE}" "${args[@]}" ${PACKAGES} + go test -v "${RACE}" "${args[@]}" ${PACKAGES} -coverprofile=coverage.out fi