Skip to content

Commit

Permalink
Run unit tests via sudo
Browse files Browse the repository at this point in the history
Since distrobuilder should run via root.

Signed-off-by: JUN JIE NAN <nanjunjie@gmail.com>
  • Loading branch information
nanjj committed Jun 26, 2024
1 parent f1f929b commit 4b3a259
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ SPHINXENV=.sphinx/venv/bin/activate

.PHONY: default
default:
go env -w GOCACHE=$(shell go env GOCACHE)
$(shell go env | grep -v GOENV | sed "s/'//g" > $(shell go env GOENV))
gofmt -s -w .
go install -v ./...
@echo "distrobuilder built successfully"
Expand All @@ -16,7 +18,7 @@ update-gomod:

.PHONY: check
check: default
go test -v ./...
sudo GOENV=$(shell go env GOENV) go test -v ./...

.PHONY: dist
dist:
Expand Down

0 comments on commit 4b3a259

Please sign in to comment.