diff options
author | George Roman <george.roman.99@gmail.com> | 2018-06-01 09:51:18 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-04 15:41:51 -0300 |
commit | 5b2540eb0d759d538c1d3fcd802b7d6961b337a9 (patch) | |
tree | db69154aed1e6ee4c542c29b54c03254a8fcc245 | |
parent | b7d5fa4caeddb73ef1a423665da9b562e16b8817 (diff) | |
download | luarocks-5b2540eb0d759d538c1d3fcd802b7d6961b337a9.tar.gz luarocks-5b2540eb0d759d538c1d3fcd802b7d6961b337a9.tar.bz2 luarocks-5b2540eb0d759d538c1d3fcd802b7d6961b337a9.zip |
Fix failing Appveyor tests
-rw-r--r-- | spec/fetch_spec.lua | 3 | ||||
-rw-r--r-- | spec/fs_spec.lua | 1 |
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") | |||
2 | local git_repo = require("spec.util.git_repo") | 2 | local git_repo = require("spec.util.git_repo") |
3 | 3 | ||
4 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
5 | test_env.setup_specs() | ||
5 | local fetch = require("luarocks.fetch") | 6 | local fetch = require("luarocks.fetch") |
6 | local path = require("luarocks.path") | 7 | local path = require("luarocks.path") |
7 | local lfs = require("lfs") | 8 | local lfs = require("lfs") |
@@ -11,7 +12,7 @@ local get_tmp_path = test_env.get_tmp_path | |||
11 | describe("Luarocks fetch test #unit", function() | 12 | describe("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 @@ | |||
1 | local test_env = require("spec.util.test_env") | 1 | local test_env = require("spec.util.test_env") |
2 | 2 | ||
3 | test_env.unload_luarocks() | 3 | test_env.unload_luarocks() |
4 | test_env.setup_specs() | ||
4 | local fs = require("luarocks.fs") | 5 | local fs = require("luarocks.fs") |
5 | local lfs = require("lfs") | 6 | local lfs = require("lfs") |
6 | local is_win = test_env.TEST_TARGET_OS == "windows" | 7 | local is_win = test_env.TEST_TARGET_OS == "windows" |