make test: disable -buildvcs to make sudo work

This commit is contained in:
Michael Stapelberg 2022-06-12 23:07:36 +02:00
parent ff0020b47b
commit e17be63d46

View File

@ -46,7 +46,7 @@ test:
go build -mod=mod ${PKGS} github.com/rtr7/tools/cmd/... go build -mod=mod ${PKGS} github.com/rtr7/tools/cmd/...
go test -mod=mod -count=1 -v -race github.com/rtr7/router7/internal/... go test -mod=mod -count=1 -v -race github.com/rtr7/router7/internal/...
# integration tests # integration tests
${SUDO} $(shell go env GOROOT)/bin/go test -count=1 -v -race github.com/rtr7/router7/... ${SUDO} $(shell go env GOROOT)/bin/go test -buildvcs=false -count=1 -v -race github.com/rtr7/router7/...
testdhcp: testdhcp:
go test -v -coverprofile=/tmp/cov github.com/rtr7/router7/internal/dhcp4d go test -v -coverprofile=/tmp/cov github.com/rtr7/router7/internal/dhcp4d