Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Inherit environment to root-test
Browse files Browse the repository at this point in the history
So it can find Go commands and libraries
  • Loading branch information
bboreham committed Jan 13, 2021
1 parent 3345a60 commit 01d86c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) \
Expand Down

0 comments on commit 01d86c5

Please # to comment.