golang/go
View on GitHubx/review/git-codereview: skip tests that require "gofmt" binary when it's not available
Open
#36,801 opened on Jan 27, 2020
NeedsFixTestinghelp wanted
Repository metrics
- Stars
- (133,883 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
https://build.golang.org/log/36fc6a856500bd206f0f994b1565fb6badbe7034
aix-ppc64 at 6fbdfe48041c883a9f6d8c981a7205b7c327862a building review at f51a73253c4da005cfdf18a036e11185c04c8ce3
…
--- FAIL: TestGofmt (0.55s)
gofmt_test.go:46: git-codereview gofmt -l
util_test.go:323: died
stdout:
stderr:
git-codereview: invoking gofmt: exec: "gofmt": executable file not found in $PATH
…
I'm not sure whether this should be resolved by adding gofmt to the builder's PATH, by updating the git-codereview tool to invoke go fmt instead, by updating the test to install that tool if not present, or by updating the test to skip those cases if the gofmt binary is not found.
This is technically a release-blocker via #11811, but seems pretty minor. (CC @dmitshur @cagedmantis @toothrot @trex58)