Skip to content

Commit

Permalink
Makefile: add missing PATH set
Browse files Browse the repository at this point in the history
When running go test with sudo, the PATH must be set externally with
env PATH=$(PATH)
Add this in the helpers test rule.
  • Loading branch information
NDStrahilevitz committed Dec 26, 2022
1 parent f0d2f30 commit bab9f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ helpers-test-static-run: libbpfgo-static
CC=$(CLANG) \
CGO_CFLAGS=$(CGO_CFLAGS_STATIC) \
CGO_LDFLAGS=$(CGO_LDFLAGS_STATIC) \
sudo -E $(GO) test -v $(HELPERS)/...
sudo -E env PATH=$(PATH) $(GO) test -v $(HELPERS)/...

helpers-test-dynamic-run: libbpfgo-dynamic
sudo $(GO) test -v $(HELPERS)/...
Expand Down

0 comments on commit bab9f34

Please sign in to comment.