File tree Expand file tree Collapse file tree 2 files changed +167
-2
lines changed Expand file tree Collapse file tree 2 files changed +167
-2
lines changed Original file line number Diff line number Diff line change @@ -582,14 +582,18 @@ repeat-doc-examples:
582582 echo " ----------------------------------" >> tests/autogenerate-examples-repeat.log; \
583583 echo " Iteration $$ i" >> tests/autogenerate-examples-repeat.log; \
584584 echo " ----------------------------------" >> tests/autogenerate-examples-repeat.log; \
585- VALGRIND=0 TIMEOUT=40 TEST_DEBUG=1 GENERATE_EXAMPLES=1 pytest -vvv tests/autogenerate-rpc-examples.py; \
585+ VALGRIND=0 TIMEOUT=40 TEST_DEBUG=1 GENERATE_EXAMPLES=1 CLN_NEXT_VERSION= $( CLN_NEXT_VERSION ) pytest -vvv tests/autogenerate-rpc-examples.py; \
586586 git diff >> tests/autogenerate-examples-repeat.log; \
587587 git reset --hard; \
588588 echo " ----------------------------------" >> tests/autogenerate-examples-repeat.log; \
589589 done
590590
591591update-doc-examples :
592- TEST_DEBUG=1 VALGRIND=0 GENERATE_EXAMPLES=1 $(PYTEST ) $(PYTEST_OPTS ) --timeout=1200 tests/autogenerate-rpc-examples.py && $(MAKE ) $(MSGGEN_GEN_ALL )
592+ TEST_DEBUG=1 VALGRIND=0 GENERATE_EXAMPLES=1 CLN_NEXT_VERSION=$(CLN_NEXT_VERSION ) $(PYTEST ) $(PYTEST_OPTS ) --timeout=1200 tests/autogenerate-rpc-examples.py && $(MAKE ) $(MSGGEN_GEN_ALL )
593+
594+ # If you changed tests/autogenerate-rpc-examples.py to require new blocks, you have to run this:
595+ update-doc-examples-newchain :
596+ TEST_DEBUG=1 VALGRIND=0 GENERATE_EXAMPLES=1 CLN_NEXT_VERSION=$(CLN_NEXT_VERSION ) REGENERATE_BLOCKCHAIN=1 $(PYTEST ) $(PYTEST_OPTS ) --timeout=1200 tests/autogenerate-rpc-examples.py && $(MAKE ) $(MSGGEN_GEN_ALL )
593597
594598check-doc-examples : update-doc-examples
595599 git diff --exit-code HEAD
You can’t perform that action at this time.
0 commit comments