Skip to content

Commit 8182ac3

Browse files
committed
make: add flake-unit-race-trace goal
To help debug a single race unit test failure, we add a goal that enables trace logging on stdout.
1 parent 1660f9c commit 8182ac3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ flake-unit-race:
232232
@$(call print, "Flake hunting races in unit tests.")
233233
while [ $$? -eq 0 ]; do make unit-race nocache=1; done
234234

235+
flake-unit-race-trace:
236+
@$(call print, "Flake hunting races in unit tests.")
237+
while [ $$? -eq 0 ]; do make unit-race log='stdout trace' nocache=1; done
238+
235239
# =============
236240
# FUZZING
237241
# =============

make/testing_flags.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ endif
7474
# are provided, we default to "nolog" which will be silent.
7575
ifneq ($(log),)
7676
LOG_TAGS := ${log}
77+
TEST_FLAGS += -test.v
7778
else
7879
LOG_TAGS := nolog
7980
endif

0 commit comments

Comments
 (0)