Skip to content

Commit ff1181d

Browse files
committed
Only set --bench for crate tests when PLEASE_BENCH is set
closes #22291
1 parent 95b228a commit ff1181d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mk/tests.mk

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ ifdef CHECK_IGNORED
3838
TESTARGS += --ignored
3939
endif
4040

41-
4241
# Arguments to the cfail/rfail/rpass/bench tests
4342
ifdef CFG_VALGRIND
4443
CTEST_RUNTOOL = --runtool "$(CFG_VALGRIND)"
4544
endif
4645

47-
ifdef PLEASE_BENCH
48-
TESTARGS += --bench
49-
endif
50-
5146
# Arguments to the perf tests
5247
ifdef CFG_PERF_TOOL
5348
CTEST_PERF_RUNTOOL = --runtool "$(CFG_PERF_TOOL)"
5449
endif
5550

5651
CTEST_TESTARGS := $(TESTARGS)
5752

53+
# --bench is only relevant for crate tests, not for the compile tests
54+
ifdef PLEASE_BENCH
55+
TESTARGS += --bench
56+
endif
57+
5858
ifdef VERBOSE
5959
CTEST_TESTARGS += --verbose
6060
endif

0 commit comments

Comments
 (0)