From 01d86c5ddc33e62c77ace83ca886b7b724637c96 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Wed, 13 Jan 2021 18:12:38 +0000 Subject: [PATCH] Inherit environment to root-test So it can find Go commands and libraries --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6440ee9f0..c54bd3544 100644 --- a/Makefile +++ b/Makefile @@ -192,7 +192,7 @@ test-in-docker: # Run tests that require root. root-test: - sudo $(shell which go) test -mod=vendor -v $(TEST_REQUIRES_ROOT_PACKAGES) -count=$(TEST_COUNT) + sudo -E $(shell which go) test -mod=vendor -v $(TEST_REQUIRES_ROOT_PACKAGES) -count=$(TEST_COUNT) graph: hack/graph.sh @@ -278,7 +278,7 @@ bin/docs/builder-image.tar: e2e: build-all e2e-nobuild e2e-nobuild: - sudo IGNITE_E2E_HOME=$(shell pwd) \ + sudo -E IGNITE_E2E_HOME=$(shell pwd) \ $(shell which go) test \ $(TEST_E2E_PACKAGES) -v -mod=vendor \ -count $(E2E_COUNT) \