test: enable cleaning of a test environment
This commit enables pretest_clean test-run option on 'core = tarantool' test suites with Lua tests and 'core = app' test suites. Consider #4094 for an example of a problem that is eliminated by this option. For 'core = tarantool': this option drops non-system spaces, drops data in system spaces and global variables to the initial state, unloads packages except build-in ones. For 'core = app': this option deletes xlog and snap files before run a test. test-run doesn't remove global variables that are listed in the 'protected_globals' global variable. Use it for, say, functions that are defined in an instance file and called from tests. Consider test-run/README.md for the information how exactly the option works. Removed unused cfg_filter() function from test/engine/box.lua. Fixes #4094.
Showing
- test/app-tap/suite.ini 1 addition, 0 deletionstest/app-tap/suite.ini
- test/app/suite.ini 1 addition, 0 deletionstest/app/suite.ini
- test/box-tap/suite.ini 1 addition, 0 deletionstest/box-tap/suite.ini
- test/box/box.lua 3 additions, 1 deletiontest/box/box.lua
- test/box/suite.ini 1 addition, 0 deletionstest/box/suite.ini
- test/engine/box.lua 0 additions, 21 deletionstest/engine/box.lua
- test/engine/suite.ini 1 addition, 0 deletionstest/engine/suite.ini
- test/engine_long/suite.ini 1 addition, 0 deletionstest/engine_long/suite.ini
- test/engine_long/suite.lua 3 additions, 2 deletionstest/engine_long/suite.lua
- test/luajit-tap/suite.ini 1 addition, 0 deletionstest/luajit-tap/suite.ini
- test/replication/suite.ini 1 addition, 0 deletionstest/replication/suite.ini
- test/sql/suite.ini 1 addition, 0 deletionstest/sql/suite.ini
- test/vinyl/suite.ini 1 addition, 0 deletionstest/vinyl/suite.ini
- test/wal_off/suite.ini 1 addition, 0 deletionstest/wal_off/suite.ini
- test/xlog/suite.ini 1 addition, 0 deletionstest/xlog/suite.ini
Loading
Please register or sign in to comment