]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: lua: fix tune.lua.openlibs in Lua reg-tests 20260527-lua-init flx04/20260527-lua-init
authorWilliam Lallemand <wlallemand@irq6.net>
Wed, 27 May 2026 19:06:04 +0000 (21:06 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Wed, 27 May 2026 19:06:04 +0000 (21:06 +0200)
commit3013ec4f37fe0f794b2460898c250c2d81fa8ccf
tree75d0856ff58a78a5b72f00ff0a3227c81214a6da
parent8b0e2920a3aa0b50ed5f995fd7a6d19b869b7cff
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
reg-tests/lua/h_txn_get_priv.vtc
reg-tests/lua/lua_httpclient.vtc
reg-tests/lua/lua_socket.vtc
reg-tests/lua/txn_get_priv.vtc