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
Showing
- test/box/admin.result 5 additions, 2 deletionstest/box/admin.result
- test/box/admin.test.lua 3 additions, 0 deletionstest/box/admin.test.lua
- test/box/args.test.py 1 addition, 1 deletiontest/box/args.test.py
- test/box/bad_trigger.test.py 1 addition, 1 deletiontest/box/bad_trigger.test.py
- test/box/cfg.result 7 additions, 4 deletionstest/box/cfg.result
- test/box/cfg.test.lua 3 additions, 0 deletionstest/box/cfg.test.lua
- test/box/configuration.result 3 additions, 3 deletionstest/box/configuration.result
- test/box/configuration.test.py 22 additions, 18 deletionstest/box/configuration.test.py
- test/box/iproto.test.py 1 addition, 1 deletiontest/box/iproto.test.py
- test/box/lua/require_init.lua 1 addition, 1 deletiontest/box/lua/require_init.lua
- test/box/print.test.py 1 addition, 1 deletiontest/box/print.test.py
- test/box/reconfigure.result 4 additions, 4 deletionstest/box/reconfigure.result
- test/box/reconfigure.test.py 1 addition, 1 deletiontest/box/reconfigure.test.py
- test/box/snapshot.test.py 3 additions, 3 deletionstest/box/snapshot.test.py
- test/box/xlog.test.py 13 additions, 12 deletionstest/box/xlog.test.py
- test/lib/box_connection.py 4 additions, 5 deletionstest/lib/box_connection.py
- test/lib/colorer.py 0 additions, 1 deletiontest/lib/colorer.py
- test/lib/preprocessor.py 47 additions, 11 deletionstest/lib/preprocessor.py
- test/lib/server.py 21 additions, 12 deletionstest/lib/server.py
- test/lib/sql_ast.py 20 additions, 1 deletiontest/lib/sql_ast.py
Loading
Please register or sign in to comment