Skip to content
Snippets Groups Projects
Commit 560d9fdf authored by Serge Petrenko's avatar Serge Petrenko Committed by Vladimir Davydov
Browse files

test: allow to execute custom code before box.cfg in default instance

Sometimes there's a need in creating a custom testing instance, with
test-specific code, which doesn't fit in box.cfg.

Our usual approach is to duplicate the instance file (default.lua) and make
the necessary changes there. This leads to a lot of code duplication and
lots of instance files with unclear use cases.

Let's better make it possible to pass code to the default instance via
an env variable TARANTOOL_RUN_BEFORE_CFG.

This will be used in box.ctl.on_recovery_state() triggers test.

In-scope-of #5272

NO_DOC=testing
NO_TEST=testing
NO_CHANGELOG=testing
parent a470bb63
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment