Skip to content

Commit 249e6cb

Browse files
committed
BUILD: add REGTESTS_KEEP_LOGS variable to preserve regression test logs
Add support for a new REGTESTS_KEEP_LOGS environment variable that can be passed to the regression test script to keep all test logs after completion. This is useful for debugging and analyzing test failures without having to modify the test runner or reconfigure the build system. Usage: $ REGTESTS_KEEP_LOGS=1 make reg-tests
1 parent d3d6292 commit 249e6cb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ endif
12651265
12661266
# Target to run the regression testing script files.
12671267
reg-tests:
1268-
$(Q)$(REG_TEST_SCRIPT) --type "$(REGTESTS_TYPES)" $(REGTEST_ARGS) $(REG_TEST_FILES)
1268+
$(Q)$(REG_TEST_SCRIPT) --type "$(REGTESTS_TYPES)" $(if $(REGTESTS_KEEP_LOGS),--keep-logs) $(REGTEST_ARGS) $(REG_TEST_FILES)
12691269
.PHONY: $(REGTEST_ARGS)
12701270
12711271
reg-tests-help:
@@ -1288,6 +1288,9 @@ reg-tests-help:
12881288
@echo "To run tests with specific types:"
12891289
@echo " $$ REGTESTS_TYPES=slow,default make reg-tests"
12901290
@echo
1291+
@echo "To keep all reg-tests logs:"
1292+
@echo " $$ REGTESTS_KEEP_LOGS=1 make reg-tests"
1293+
@echo
12911294
@echo "with 'default,bug,devel,slow' as default value for REGTESTS_TYPES variable."
12921295
@echo
12931296
@echo "About the reg test types:"

0 commit comments

Comments
 (0)