summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2016-06-26 15:23:57 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2016-06-26 15:23:57 +0300
commit8b4cbc972fdab88e2af84022b2a54c10dcd17b41 (patch)
tree0d6fb60dfb11a9f119e8a7e5bc4014cd77a320de
parentd1b01f1cb7fca50cec816b52a3debfb8c47d7f8b (diff)
downloadluacov-8b4cbc972fdab88e2af84022b2a54c10dcd17b41.tar.gz
Fix cli/nested test
-rw-r--r--tests/nested/test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/nested/test.lua b/tests/nested/test.lua
index 062b92b..f312d43 100644
--- a/tests/nested/test.lua
+++ b/tests/nested/test.lua
@@ -4,14 +4,14 @@ local luacov = require "luacov.runner"
testlib.f1()
local dir_sep = package.config:sub(1, 1)
-local cmd = arg[-5] or "lua"
+local cmd = arg[-4] or "lua"
local slash = cmd:find(dir_sep)
if slash and slash ~= 1 then
cmd = ".." .. dir_sep .. cmd
end
-cmd = ("%q"):format(cmd) .. ' -e "package.path=[[../?.lua;../../../src/?.lua;]]"'
+cmd = ("%q"):format(cmd) .. ' -e "package.path=[[../?.lua;../../../src/?.lua;]]..package.path"'
cmd = cmd .. ' -e "osexit = os.exit"'
cmd = cmd .. ' -e "require([[luacov.runner]]).load_config({statsfile = [[../luacov.stats.out]], savestepsize = 1})"'
cmd = cmd .. " -l luacov.tick"