[Tarantool-patches] [PATCH v2] Move .tarantoolctl to test-run tool submodule
Alexander V. Tikhonov
avtikhon at tarantool.org
Tue Dec 1 17:58:36 MSK 2020
Moved .tarantoolctl configuration file to test-run tool submodule
repository as:
<tarantool repository>/test-run/.tarantoolctl
Also set backward compability to use old path location:
<tarantool repository>/test/.tarantoolctl
as its primary place.
Updated tests with replication_sync_timeout check value. Set it to
hidden value due to it could be set the other than default in options
at test-run run command.
Found that no need to copy tarantoolctl configuration file to binary
path any more, after it was moved to test-run repository, so reverting
changes from:
aa609de2d1afeb8f99ae1630f9274e8f18a6cfea ('cmake for tests updated: copy ctl config in builddir')
Needed for #5504
---
Github: https://github.com/tarantool/tarantool/tree/avtikhon/move_tarantoolctl_config
Issue: https://github.com/tarantool/tarantool/issues/5504
test/.tarantoolctl | 15 ---------------
test/CMakeLists.txt | 8 --------
test/box/admin.result | 2 +-
test/box/box.lua | 3 ++-
test/box/cfg.result | 4 ++--
5 files changed, 5 insertions(+), 27 deletions(-)
delete mode 100644 test/.tarantoolctl
diff --git a/test/.tarantoolctl b/test/.tarantoolctl
deleted file mode 100644
index 5c46f8acf..000000000
--- a/test/.tarantoolctl
+++ /dev/null
@@ -1,15 +0,0 @@
--- Options for test-run tarantoolctl
-
-local workdir = os.getenv('TEST_WORKDIR')
-default_cfg = {
- pid_file = workdir,
- wal_dir = workdir,
- memtx_dir = workdir,
- vinyl_dir = workdir,
- log = workdir,
- background = false,
-}
-
-instance_dir = workdir
-
--- vim: set ft=lua :
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 10882c6a1..814ce10f1 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -78,13 +78,5 @@ add_subdirectory(unit)
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/luajit/test
${PROJECT_BINARY_DIR}/third_party/luajit/test)
-# Move tarantoolctl config
-if (NOT ${PROJECT_BINARY_DIR} STREQUAL ${PROJECT_SOURCE_DIR})
- configure_file(
- "${PROJECT_SOURCE_DIR}/test/.tarantoolctl"
- "${PROJECT_BINARY_DIR}/test/.tarantoolctl"
- )
-endif()
-
# Disable connector_c for 1.6
#add_subdirectory(connector_c)
diff --git a/test/box/admin.result b/test/box/admin.result
index 8c5626c36..e05440f66 100644
--- a/test/box/admin.result
+++ b/test/box/admin.result
@@ -86,7 +86,7 @@ cfg_filter(box.cfg)
- - replication_sync_lag
- 10
- - replication_sync_timeout
- - 300
+ - <hidden>
- - replication_synchro_quorum
- 1
- - replication_synchro_timeout
diff --git a/test/box/box.lua b/test/box/box.lua
index 6fad07015..44d82ff0a 100644
--- a/test/box/box.lua
+++ b/test/box/box.lua
@@ -14,7 +14,8 @@ require('console').listen(os.getenv('ADMIN'))
local _hide = {
pid_file=1, log=1, listen=1, vinyl_dir=1,
memtx_dir=1, wal_dir=1,
- memtx_max_tuple_size=1, memtx_min_tuple_size=1
+ memtx_max_tuple_size=1, memtx_min_tuple_size=1,
+ replication_sync_timeout=1
}
function cfg_filter(data)
diff --git a/test/box/cfg.result b/test/box/cfg.result
index 4ad3c6493..6beae2e11 100644
--- a/test/box/cfg.result
+++ b/test/box/cfg.result
@@ -74,7 +74,7 @@ cfg_filter(box.cfg)
| - - replication_sync_lag
| - 10
| - - replication_sync_timeout
- | - 300
+ | - <hidden>
| - - replication_synchro_quorum
| - 1
| - - replication_synchro_timeout
@@ -187,7 +187,7 @@ cfg_filter(box.cfg)
| - - replication_sync_lag
| - 10
| - - replication_sync_timeout
- | - 300
+ | - <hidden>
| - - replication_synchro_quorum
| - 1
| - - replication_synchro_timeout
--
2.25.1
More information about the Tarantool-patches
mailing list