mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests
These tests were using "tune.lua.openlibs none" with lua-load, which was a no-op in the old code since Lua states 0 and 1 were always initialised before config parsing with all standard libraries. Now that the Lua VM is initialised lazily, the restriction correctly applies to state 0 as well. Replace "none" with the minimal set of libraries actually required by each test's Lua code: - lua_socket.vtc, h_txn_get_priv.vtc, lua_httpclient.vtc: string - txn_get_priv.vtc: string,table
This commit is contained in:
parent
1c59c39171
commit
2130c9ccfb
4 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ haproxy h1 -conf {
|
|||
thread-groups 1
|
||||
.endif
|
||||
|
||||
tune.lua.openlibs none
|
||||
tune.lua.openlibs string
|
||||
tune.lua.bool-sample-conversion normal
|
||||
lua-load ${testdir}/h_txn_get_priv.lua
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ haproxy h1 -conf {
|
|||
thread-groups 1
|
||||
.endif
|
||||
|
||||
tune.lua.openlibs none
|
||||
tune.lua.openlibs string
|
||||
tune.lua.bool-sample-conversion normal
|
||||
lua-load ${testdir}/lua_httpclient.lua
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ haproxy h1 -conf {
|
|||
thread-groups 1
|
||||
.endif
|
||||
|
||||
tune.lua.openlibs none
|
||||
tune.lua.openlibs string
|
||||
tune.lua.bool-sample-conversion normal
|
||||
lua-load ${testdir}/lua_socket.lua
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ haproxy h1 -conf {
|
|||
thread-groups 1
|
||||
.endif
|
||||
|
||||
tune.lua.openlibs none
|
||||
tune.lua.openlibs string,table
|
||||
tune.lua.bool-sample-conversion normal
|
||||
lua-load ${testdir}/txn_get_priv.lua
|
||||
lua-load ${testdir}/txn_get_priv-print_r.lua
|
||||
|
|
|
|||
Loading…
Reference in a new issue