From 46ca3f7fd1e19d0cc7584671cdb81cd56e865bdc Mon Sep 17 00:00:00 2001 From: Ray Milkey Date: Fri, 13 Sep 2019 08:54:35 -0700 Subject: [PATCH] Add CGO flag to -race runs (#670) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f97a50d8a..0f7e9c5d5 100644 --- a/Makefile +++ b/Makefile @@ -32,9 +32,9 @@ build/_output/stratum.so.1.0.0: modelplugin/Stratum-1.0.0/modelmain.go modelplug test: # @HELP run the unit tests and source code validation test: build deps linters license_check - go test -race github.com/onosproject/onos-config/pkg/... - go test -race github.com/onosproject/onos-config/cmd/... - go test -race github.com/onosproject/onos-config/modelplugin/... + -CGO_ENABLED=1 go test -race github.com/onosproject/onos-config/pkg/... + -CGO_ENABLED=1 go test -race github.com/onosproject/onos-config/cmd/... + -CGO_ENABLED=1 go test -race github.com/onosproject/onos-config/modelplugin/... coverage: # @HELP generate unit test coverage data coverage: build deps linters license_check