Skip to content
Snippets Groups Projects
Commit ec89190f authored by Dmitry Simonenko's avatar Dmitry Simonenko
Browse files

feature-script_dir: test case added for script_dir presence

parent a8a6b261
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
import os
import sys
import shutil
print """
# Bug #708685:
......@@ -65,4 +66,14 @@ sys.stdout.pop_filter()
# restore default server
server.stop()
server.deploy(self.suite_ini["config"])
script_dir_path = os.path.join(vardir, "script_dir")
os.mkdir(script_dir_path)
open(os.path.join(script_dir_path, "init.lua"), "w+").close()
server.stop()
server.deploy("box/tarantool_scriptdir.cfg")
shutil.rmtree(script_dir_path, True)
# vim: syntax=python
No preview for this file type
#
# Limit of memory used to store tuples to 100MB
# (0.1 GB)
# This effectively limits the memory, used by
# Tarantool. However, index and connection memory
# is stored outside the slab allocator, hence
# the effective memory usage can be higher (sometimes
# twice as high).
#
slab_alloc_arena = 0.1
#
# Store the pid in this file. Relative to
# startup dir.
#
pid_file = "box.pid"
#
# Pipe the logs into the following process.
#
logger="cat - >> tarantool.log"
#
# Read only and read-write port.
primary_port = 33013
# Read-only port.
secondary_port = 33014
#
# The port for administrative commands.
#
admin_port = 33015
#
# Each write ahead log contains this many rows.
# When the limit is reached, Tarantool closes
# the WAL and starts a new one.
rows_per_wal = 50
#
# script directory (where init.lua is expected to be)
script_dir = "script_dir"
# Define a simple space with 1 HASH-based
# primary key.
space[0].enabled = 1
space[0].index[0].type = "HASH"
space[0].index[0].unique = 1
space[0].index[0].key_field[0].fieldno = 0
space[0].index[0].key_field[0].type = "NUM"
......@@ -19,6 +19,7 @@ configuration:
work_dir: (null)
snap_dir: "."
wal_dir: "."
script_dir: "."
pid_file: "box.pid"
logger: "cat - >> tarantool.log"
logger_nonblock: "true"
......
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