From 17ce7c5ee47b4febde65d571993d4c963d85fcc1 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 13 Jan 2023 14:47:00 -0500 Subject: Updated it so that lpm can run tests. --- src/lpm.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/lpm.lua') diff --git a/src/lpm.lua b/src/lpm.lua index faafdea..1601bee 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1370,7 +1370,7 @@ local function lpm_lite_xl_run(version, ...) end local bottle = Bottle.new(lite_xl, addons) if not bottle:is_constructed() then bottle:construct() end - bottle:run(common.splice(arguments, i + 1)) + bottle:run(common.slice(arguments, i + 1)) end @@ -1799,6 +1799,11 @@ in any circumstance unless explicitly supplied. -- Small utility functions that don't play into the larger app; are used for testing -- or for handy scripts. + if ARGS[2] == "test" then + rawset(_G, "arg", common.slice(ARGS, 4)) + dofile(ARGS[3]) + os.exit(0) + end if ARGS[2] == "download" then local file = common.get(ARGS[3]); print(file) -- cgit v1.2.3