diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-19 09:58:36 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-07-01 15:51:09 -0300 |
commit | a55f09fae00cb3c575f926eda4d76e81ff37b2ba (patch) | |
tree | c36d2d475549f76805b3b9bfd08f1429f032e5ac /spec/tools_spec.lua | |
parent | 392f67d65a950fcf08a08d10d21e80f359160262 (diff) | |
download | luarocks-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.lua | 3 |
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 | ||
6 | test_env.unload_luarocks() | 6 | test_env.unload_luarocks() |
7 | local fs = require("luarocks.fs") | 7 | local fs = require("luarocks.fs") |
8 | local patch = package.loaded["luarocks.tools.patch"] | 8 | local patch = require("luarocks.tools.patch") |
9 | 9 | ||
10 | local lao = | 10 | local 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 |