From bf9f38e421427a75c9dee498be0bbd8fe7fcc846 Mon Sep 17 00:00:00 2001 From: John Belamaric Date: Tue, 19 Dec 2023 09:52:51 -0800 Subject: [PATCH] Fix non-container go unit test run --- default-go-test.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/default-go-test.mk b/default-go-test.mk index 5fee1ba5..9ae1293e 100644 --- a/default-go-test.mk +++ b/default-go-test.mk @@ -32,7 +32,9 @@ ifeq ($(CONTAINER_RUNNABLE), 0) go tool cover -html=${TEST_COVERAGE_FILE} -o ${TEST_COVERAGE_HTML_FILE}; \ go tool cover -func=${TEST_COVERAGE_FILE} -o ${TEST_COVERAGE_FUNC_FILE}" else - go test ./... -v -coverprofile ${TEST_COVERAGE_FILE} + git config --global --add user.name test + git config --global --add user.email test@nephio.org + go test ./... -v -coverprofile ${TEST_COVERAGE_FILE} go tool cover -html=${TEST_COVERAGE_FILE} -o ${TEST_COVERAGE_HTML_FILE} go tool cover -func=${TEST_COVERAGE_FILE} -o ${TEST_COVERAGE_FUNC_FILE} endif