Skip to content

Commit

Permalink
Fix non-container go unit test run
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbelamaric committed Dec 19, 2023
1 parent 613e520 commit bf9f38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion default-go-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf9f38e

Please sign in to comment.