make tries to interpret --keep-logs as own argument. didn't work for me

вс, 17 мая 2026 г. в 19:51, William Lallemand <[email protected]>:

> On May 17, 2026 7:12:33 PM GMT+02:00, Ilia Shipitsin <[email protected]>
> wrote:
> >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
> >---
> > Makefile | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> >diff --git a/Makefile b/Makefile
> >index 22c4321d1..e3445da52 100644
> >--- a/Makefile
> >+++ b/Makefile
> >@@ -1265,7 +1265,7 @@ endif
> >
> > # Target to run the regression testing script files.
> > reg-tests:
> >-      $(Q)$(REG_TEST_SCRIPT) --type "$(REGTESTS_TYPES)" $(REGTEST_ARGS)
> $(REG_TEST_FILES)
> >+      $(Q)$(REG_TEST_SCRIPT) --type "$(REGTESTS_TYPES)" $(if
> $(REGTESTS_KEEP_LOGS),--keep-logs) $(REGTEST_ARGS) $(REG_TEST_FILES)
> > .PHONY: $(REGTEST_ARGS)
> >
> > reg-tests-help:
> >@@ -1288,6 +1288,9 @@ reg-tests-help:
> >       @echo "To run tests with specific types:"
> >       @echo "    $$ REGTESTS_TYPES=slow,default make reg-tests"
> >       @echo
> >+      @echo "To keep all reg-tests logs:"
> >+      @echo "    $$ REGTESTS_KEEP_LOGS=1 make reg-tests"
> >+      @echo
> >       @echo "with 'default,bug,devel,slow' as default value for
> REGTESTS_TYPES variable."
> >       @echo
> >       @echo "About the reg test types:"
> >--
> >2.46.0.windows.1
> >
> >
> >
>
> Probably not useful, you can already pass the arguments you need to the
> Makefile with something like:
>
> make reg-tests -- --keep-logs
>
>
> --
> William Lallemand
>

Reply via email to