Skip to content
Snippets Groups Projects
Commit e83cc72f authored by Eugine Blikh's avatar Eugine Blikh
Browse files

Create new version of tarantool_python.py with new TarantoolServer:

Important changes:
  * lua_libs are now copy from TarantoolServer (if you need, e.g.,
    to copy .lua or .xlog file when you starts server you may
    simply add it to server.lua_libs variable, and in the end
    simply delete it)
  * server now stops on random ports, for your convinience, when you
    `--start-and-exit` test-system - it shows on what port it starts
  * when you want to create a server, that is replica of some other
    server, you must do something like `replica.rpl_master = master`,
    then all will be ok. if hot_standby, then
    `hot_standby.hot_master = master`. when you stop working with it:
    `replica.rpl_master = None`..
  * new option: server.shebang is used for running scripts, no need
    to spoil server.binary now.
  * for config, init_lua and other options now there are decoreators.
    you may use relative paths now.

Other:
  * Some tests were rewritten for new TarantoolServer
  * Add `environment variables` for lua tests, possible to send it to
    server.
  * add rpl_master and hot_master for server directives in lua_tests
    (better idea, it seems, to move all `replication/` tests to python)

Some issues:
  * --valgrind:
    1. `chase_cuOff: no entry for 0x07422`... It garbages output.
    2. If you redeploy server then valgrind log is overwritten.
       Possible solutions:
         a) `valgrind_disable` this tests.
         b) Append logfile with temporary logfiles.
    3. Some memory leaks: need to be fixed.
  * --gdb: some minor code problems, all works, but tests, that
    crashes server won't work (new system of knowing that server
    is up)
  * Need of minor(!!) cleanup
parent 3d5a6259
No related branches found
No related tags found
No related merge requests found
Showing
with 161 additions and 82 deletions
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