aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2018-06-01 09:51:18 +0300
committerHisham Muhammad <hisham@gobolinux.org>2018-06-04 15:41:51 -0300
commit5b2540eb0d759d538c1d3fcd802b7d6961b337a9 (patch)
treedb69154aed1e6ee4c542c29b54c03254a8fcc245
parentb7d5fa4caeddb73ef1a423665da9b562e16b8817 (diff)
downloadluarocks-5b2540eb0d759d538c1d3fcd802b7d6961b337a9.tar.gz
luarocks-5b2540eb0d759d538c1d3fcd802b7d6961b337a9.tar.bz2
luarocks-5b2540eb0d759d538c1d3fcd802b7d6961b337a9.zip
Fix failing Appveyor tests
-rw-r--r--spec/fetch_spec.lua3
-rw-r--r--spec/fs_spec.lua1
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua
index fa614349..be138b8c 100644
--- a/spec/fetch_spec.lua
+++ b/spec/fetch_spec.lua
@@ -2,6 +2,7 @@ local test_env = require("spec.util.test_env")
2local git_repo = require("spec.util.git_repo") 2local git_repo = require("spec.util.git_repo")
3 3
4test_env.unload_luarocks() 4test_env.unload_luarocks()
5test_env.setup_specs()
5local fetch = require("luarocks.fetch") 6local fetch = require("luarocks.fetch")
6local path = require("luarocks.path") 7local path = require("luarocks.path")
7local lfs = require("lfs") 8local lfs = require("lfs")
@@ -11,7 +12,7 @@ local get_tmp_path = test_env.get_tmp_path
11describe("Luarocks fetch test #unit", function() 12describe("Luarocks fetch test #unit", function()
12 local are_same_files = function(file1, file2) 13 local are_same_files = function(file1, file2)
13 return file1 == file2 or lfs.attributes(file1).ino == lfs.attributes(file2).ino 14 return file1 == file2 or lfs.attributes(file1).ino == lfs.attributes(file2).ino
14 end 15 end
15 16
16 describe("fetch.is_basic_protocol", function() 17 describe("fetch.is_basic_protocol", function()
17 it("checks whether the arguments represent a valid protocol and returns the result of the check", function() 18 it("checks whether the arguments represent a valid protocol and returns the result of the check", function()
diff --git a/spec/fs_spec.lua b/spec/fs_spec.lua
index c0679b34..2d0059b6 100644
--- a/spec/fs_spec.lua
+++ b/spec/fs_spec.lua
@@ -1,6 +1,7 @@
1local test_env = require("spec.util.test_env") 1local test_env = require("spec.util.test_env")
2 2
3test_env.unload_luarocks() 3test_env.unload_luarocks()
4test_env.setup_specs()
4local fs = require("luarocks.fs") 5local fs = require("luarocks.fs")
5local lfs = require("lfs") 6local lfs = require("lfs")
6local is_win = test_env.TEST_TARGET_OS == "windows" 7local is_win = test_env.TEST_TARGET_OS == "windows"