@@ -125,7 +125,7 @@ ut: tools/bin/ut tools/bin/xprog failpoint-enable
125
125
gotest : failpoint-enable
126
126
@echo " Running in native mode."
127
127
@export log_level=info; export TZ=' Asia/Shanghai' ; \
128
- $(GOTEST ) -ldflags ' $(TEST_LDFLAGS)' $(EXTRA_TEST_ARGS ) -timeout 20m -cover $(PACKAGES_TIDB_TESTS ) -coverprofile=coverage.txt -check.p true > gotest.log || { $( FAILPOINT_DISABLE) ; cat ' gotest.log' ; exit 1; }
128
+ $(GOTEST ) -ldflags ' $(TEST_LDFLAGS)' $(EXTRA_TEST_ARGS ) -timeout 20m -cover $(PACKAGES_TIDB_TESTS ) -coverprofile=coverage.txt > gotest.log || { $( FAILPOINT_DISABLE) ; cat ' gotest.log' ; exit 1; }
129
129
@$(FAILPOINT_DISABLE )
130
130
131
131
gotest_in_verify_ci : tools/bin/xprog tools/bin/ut failpoint-enable
@@ -151,11 +151,6 @@ race: failpoint-enable
151
151
@$(FAILPOINT_DISABLE )
152
152
@$(CLEAN_UT_BINARY )
153
153
154
- leak : failpoint-enable
155
- @export log_level=debug; \
156
- $(GOTEST ) -tags leak $(PACKAGES ) || { $( FAILPOINT_DISABLE) ; exit 1; }
157
- @$(FAILPOINT_DISABLE )
158
-
159
154
server :
160
155
ifeq ($(TARGET ) , "")
161
156
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o bin/tidb-server tidb-server/main.go
@@ -273,7 +268,7 @@ ifeq ("$(pkg)", "")
273
268
else
274
269
@echo "Running unit test for github.com/pingcap/tidb/$(pkg)"
275
270
@export log_level=fatal; export TZ='Asia/Shanghai'; \
276
- $(GOTEST) -ldflags '$(TEST_LDFLAGS)' -cover github.com/pingcap/tidb/$(pkg) -check.p true -check.timeout 4s || { $(FAILPOINT_DISABLE); exit 1; }
271
+ $(GOTEST) -ldflags '$(TEST_LDFLAGS)' -cover github.com/pingcap/tidb/$(pkg) || { $(FAILPOINT_DISABLE); exit 1; }
277
272
endif
278
273
@$(FAILPOINT_DISABLE)
279
274
@@ -336,15 +331,15 @@ br_unit_test: export ARGS=$$($(BR_PACKAGES))
336
331
br_unit_test :
337
332
@make failpoint-enable
338
333
@export TZ=' Asia/Shanghai' ;
339
- $(GOTEST ) $(RACE_FLAG ) -ldflags ' $(LDFLAGS)' -tags leak $(ARGS ) -coverprofile=coverage.txt || ( make failpoint-disable && exit 1 )
334
+ $(GOTEST ) $(RACE_FLAG ) -ldflags ' $(LDFLAGS)' $(ARGS ) -coverprofile=coverage.txt || ( make failpoint-disable && exit 1 )
340
335
@make failpoint-disable
341
336
br_unit_test_in_verify_ci : export ARGS=$$($(BR_PACKAGES ) )
342
337
br_unit_test_in_verify_ci : tools/bin/gotestsum
343
338
@make failpoint-enable
344
339
@export TZ=' Asia/Shanghai' ;
345
340
@mkdir -p $(TEST_COVERAGE_DIR )
346
341
CGO_ENABLED=1 tools/bin/gotestsum --junitfile " $( TEST_COVERAGE_DIR) /br-junit-report.xml" -- $(RACE_FLAG ) -ldflags ' $(LDFLAGS)' \
347
- -tags leak $(ARGS ) -coverprofile=" $( TEST_COVERAGE_DIR) /br_cov.unit_test.out" || ( make failpoint-disable && exit 1 )
342
+ $(ARGS ) -coverprofile=" $( TEST_COVERAGE_DIR) /br_cov.unit_test.out" || ( make failpoint-disable && exit 1 )
348
343
@make failpoint-disable
349
344
350
345
br_integration_test : br_bins build_br build_for_br_integration_test
@@ -401,12 +396,12 @@ build_dumpling:
401
396
402
397
dumpling_unit_test : export DUMPLING_ARGS=$$($(DUMPLING_PACKAGES ) )
403
398
dumpling_unit_test : failpoint-enable
404
- $(DUMPLING_GOTEST ) $(RACE_FLAG ) -coverprofile=coverage.txt -covermode=atomic -tags leak $(DUMPLING_ARGS ) || ( make failpoint-disable && exit 1 )
399
+ $(DUMPLING_GOTEST ) $(RACE_FLAG ) -coverprofile=coverage.txt -covermode=atomic $(DUMPLING_ARGS ) || ( make failpoint-disable && exit 1 )
405
400
@make failpoint-disable
406
401
dumpling_unit_test_in_verify_ci : export DUMPLING_ARGS=$$($(DUMPLING_PACKAGES ) )
407
402
dumpling_unit_test_in_verify_ci : failpoint-enable tools/bin/gotestsum
408
403
@mkdir -p $(TEST_COVERAGE_DIR )
409
- CGO_ENABLED=1 tools/bin/gotestsum --junitfile " $( TEST_COVERAGE_DIR) /dumpling-junit-report.xml" -- -tags leak $(DUMPLING_ARGS ) \
404
+ CGO_ENABLED=1 tools/bin/gotestsum --junitfile " $( TEST_COVERAGE_DIR) /dumpling-junit-report.xml" -- $(DUMPLING_ARGS ) \
410
405
$(RACE_FLAG ) -coverprofile=" $( TEST_COVERAGE_DIR) /dumpling_cov.unit_test.out" || ( make failpoint-disable && exit 1 )
411
406
@make failpoint-disable
412
407
0 commit comments