diff options
author | mpeterv <mpeterval@gmail.com> | 2016-04-18 15:45:24 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-04-18 15:47:48 +0300 |
commit | 761cedefca7fbee3367fd6547ecd81d20f60a4e0 (patch) | |
tree | b42663d49f5b56dc2e70647b6c575f2d92a0db4c | |
parent | 8a5716ecaa9871a0a2ddd7ae51acc6c14680e572 (diff) | |
download | luacov-761cedefca7fbee3367fd6547ecd81d20f60a4e0.tar.gz |
Fix "nested" CLI test for Windows
-rw-r--r-- | tests/nested/test.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/nested/test.lua b/tests/nested/test.lua index 3155321..062b92b 100644 --- a/tests/nested/test.lua +++ b/tests/nested/test.lua @@ -11,11 +11,11 @@ if slash and slash ~= 1 then cmd = ".." .. dir_sep .. cmd end -cmd = cmd .. " -e 'package.path=[[../?.lua;../../../src/?.lua;]]'" -cmd = cmd .. " -e 'osexit = os.exit'" -cmd = cmd .. " -e 'require([[luacov.runner]]).load_config({statsfile = [[../luacov.stats.out]], savestepsize = 1})'" +cmd = ("%q"):format(cmd) .. ' -e "package.path=[[../?.lua;../../../src/?.lua;]]"' +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" -cmd = cmd .. " -e 'dofile([[script.lua]])'" +cmd = cmd .. ' -e "dofile([[script.lua]])"' cmd = cmd:gsub("/", dir_sep) local ok = os.execute("cd subdir && " .. cmd) |