Skip to content

Commit

Permalink
Makefile: Pass lockdebug tag to tests
Browse files Browse the repository at this point in the history
Previously, the lockdebug tag was only on the building of the binary.
This commit adds the ability to pass the tag to `go test` to debug
deadlocks in tests.

Signed-off-by: Chris Tarazi <chris@isovalent.com>
  • Loading branch information
christarazi committed May 25, 2020
1 parent c42b879 commit dfe8ba1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ endif

ifneq ($(LOCKDEBUG),)
GO_BUILD_FLAGS += -tags lockdebug
GO_TEST_FLAGS += -tags lockdebug
endif

GO_BUILD_FLAGS += -ldflags '$(GO_BUILD_LDFLAGS) $(EXTRA_GO_BUILD_LDFLAGS)' $(EXTRA_GO_BUILD_FLAGS)
Expand Down

0 comments on commit dfe8ba1

Please sign in to comment.