Skip to content
Snippets Groups Projects
Commit f6a227a2 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Merge branch 'stable'

Conflicts:
	test/box/configuration.test
parents 6d4da633 b2a39e3c
No related branches found
No related tags found
No related merge requests found
......@@ -38,3 +38,15 @@ print_config()
too_long_threshold: 0.5
wal_dir_rescan_delay: 0.1
...
string.gmatch(package.path, '([^;]*)')()
---
- script_dir/?.lua
...
string.gmatch(package.cpath, '([^;]*)')()
---
- script_dir/?.so
...
mod.test(10, 15)
---
- 25
...
......@@ -24,6 +24,15 @@ server.stop()
server.deploy("box/tarantool_scriptdir.cfg")
admin("print_config()")
# Test script_dir + require
server.stop()
shutil.copy("box/require_init.lua", os.path.join(script_dir_path, "init.lua"))
shutil.copy("box/require_mod.lua", os.path.join(script_dir_path, "mod.lua"))
server.deploy("box/tarantool_scriptdir.cfg")
admin("string.gmatch(package.path, '([^;]*)')()")
admin("string.gmatch(package.cpath, '([^;]*)')()")
admin("mod.test(10, 15)")
# restore default server
server.stop()
shutil.rmtree(script_dir_path, True)
......
mod = require("mod")
exports = {}
function exports.test(a, b)
return a+b
end
return exports
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