Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Fix "nested" CLI test for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Apr 18, 2016
1 parent 8a5716e commit 761cede
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/nested/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 761cede

Please sign in to comment.