aboutsummaryrefslogtreecommitdiff
path: root/spec/tools_spec.lua
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-06-19 09:58:36 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-07-01 15:51:09 -0300
commita55f09fae00cb3c575f926eda4d76e81ff37b2ba (patch)
treec36d2d475549f76805b3b9bfd08f1429f032e5ac /spec/tools_spec.lua
parent392f67d65a950fcf08a08d10d21e80f359160262 (diff)
downloadluarocks-a55f09fae00cb3c575f926eda4d76e81ff37b2ba.tar.gz
luarocks-a55f09fae00cb3c575f926eda4d76e81ff37b2ba.tar.bz2
luarocks-a55f09fae00cb3c575f926eda4d76e81ff37b2ba.zip
fs: make module loading side-effect free, require explicit init()
Diffstat (limited to 'spec/tools_spec.lua')
-rw-r--r--spec/tools_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/tools_spec.lua b/spec/tools_spec.lua
index 8805d703..10dafb0b 100644
--- a/spec/tools_spec.lua
+++ b/spec/tools_spec.lua
@@ -5,7 +5,7 @@ local write_file = test_env.write_file
5 5
6test_env.unload_luarocks() 6test_env.unload_luarocks()
7local fs = require("luarocks.fs") 7local fs = require("luarocks.fs")
8local patch = package.loaded["luarocks.tools.patch"] 8local patch = require("luarocks.tools.patch")
9 9
10local lao = 10local lao =
11[[The Nameless is the origin of Heaven and Earth; 11[[The Nameless is the origin of Heaven and Earth;
@@ -148,6 +148,7 @@ describe("Luarocks patch test #unit", function()
148 local runner 148 local runner
149 149
150 setup(function() 150 setup(function()
151 fs.init()
151 runner = require("luacov.runner") 152 runner = require("luacov.runner")
152 runner.init(testing_paths.testrun_dir .. "/luacov.config") 153 runner.init(testing_paths.testrun_dir .. "/luacov.config")
153 runner.tick = true 154 runner.tick = true