You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go test -mod=readonly -buildvcs=false -tags "unit" --skip 'TestE2E*' -race -covermode atomic -coverprofile=coverage-main.out $(COVER_PKG)/...
885
-
go tool cover -func=coverage-main.out
888
+
go tool -modfile=$(TOOLS_GO_MOD)cover -func=coverage-main.out
886
889
887
890
test-integration: ## run all integration tests.
888
891
AZURE_IPAM_VERSION=$(AZURE_IPAM_VERSION)\
@@ -913,13 +916,13 @@ test-extended-cyclonus: ## run the cyclonus test for npm.
913
916
cd ..
914
917
915
918
test-azure-ipam: ## run the unit test for azure-ipam
916
-
cd$(AZURE_IPAM_DIR)&& go test -race -covermode atomic -coverprofile=../coverage-azure-ipam.out && go tool cover -func=../coverage-azure-ipam.out
919
+
cd$(AZURE_IPAM_DIR)&& go test -race -covermode atomic -coverprofile=../coverage-azure-ipam.out && go tool cover -modfile=$(TOOLS_GO_MOD) -func=../coverage-azure-ipam.out
917
920
918
921
test-azure-ip-masq-merger: ## run the unit test for azure-ip-masq-merger
919
-
cd$(AZURE_IP_MASQ_MERGER_DIR)&& go test -race -covermode atomic -coverprofile=../coverage-azure-ip-masq-merger.out && go tool cover -func=../coverage-azure-ip-masq-merger.out
922
+
cd$(AZURE_IP_MASQ_MERGER_DIR)&& go test -race -covermode atomic -coverprofile=../coverage-azure-ip-masq-merger.out && go tool cover -modfile=$(TOOLS_GO_MOD) -func=../coverage-azure-ip-masq-merger.out
920
923
921
924
test-azure-iptables-monitor: ## run the unit test for azure-iptables-monitor
922
-
cd$(AZURE_IPTABLES_MONITOR_DIR)&& go test -race -covermode atomic -coverprofile=../coverage-azure-iptables-monitor.out && go tool cover -func=../coverage-azure-iptables-monitor.out
925
+
cd$(AZURE_IPTABLES_MONITOR_DIR)&& go test -race -covermode atomic -coverprofile=../coverage-azure-iptables-monitor.out && go tool cover -modfile=$(TOOLS_GO_MOD) -func=../coverage-azure-iptables-monitor.out
0 commit comments