Skip to content

Commit

Permalink
tests: use go clean
Browse files Browse the repository at this point in the history
The behavoir after `go test -a` is somewhat surprising,
so add `go clean`, which seems to actuall bring everything
up to date.

golang/go#24355 (comment)
  • Loading branch information
rfjakob committed Feb 8, 2020
1 parent f2c2f79 commit a025817
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ format: earlyoom
clang-format -i *.h *.c

test: earlyoom
# Go does not notice when the C code changes, so we have to
# use `go test -a`. See https://github.com/golang/go/issues/24355 .
cd tests && go test -a -v
# Go does not notice when the C code changes, so we have to
# use `go clean` and `go test -a`.
# See https://github.com/golang/go/issues/24355 .
cd tests && go clean -cache -testcache . && go test -a -v

0 comments on commit a025817

Please sign in to comment.