From 5c6eb8604fe5aee3088096ef808399f847fb24a0 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Wed, 19 Oct 2016 18:10:18 +0300 Subject: Fix tests on Windows with Lua 5.3 Don't install luafilesystem 1.6.1 on Windows with Lua 5.3, it fails. --- spec/install_spec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec') diff --git a/spec/install_spec.lua b/spec/install_spec.lua index 45b3e2f9..2bbf4221 100644 --- a/spec/install_spec.lua +++ b/spec/install_spec.lua @@ -20,7 +20,7 @@ local extra_rocks = { "/say-1.0-1.src.rock", "/wsapi-1.6-1.src.rock", "/luafilesystem-1.6.3-2.src.rock", - "/luafilesystem-1.6.1-1.src.rock", + "/luafilesystem-1.6.3-1.src.rock", } describe("LuaRocks install tests #blackbox #b_install", function() @@ -87,12 +87,12 @@ describe("LuaRocks install tests #blackbox #b_install", function() it('LuaRocks install - handle versioned modules when installing another version with --keep #268', function() assert.is_true(run.luarocks_bool("install luafilesystem")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) - assert.is_true(run.luarocks_bool("install luafilesystem 1.6.1 --keep")) + assert.is_true(run.luarocks_bool("install luafilesystem 1.6.3-1 --keep")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) - assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_1_1-lfs."..test_env.lib_extension)) + assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_3_1-lfs."..test_env.lib_extension)) assert.is_true(run.luarocks_bool("install luafilesystem")) assert.is.truthy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/lfs."..test_env.lib_extension)) - assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_1_1-lfs."..test_env.lib_extension)) + assert.is.falsy(lfs.attributes(testing_paths.testing_sys_tree .. "/lib/lua/"..env_variables.LUA_VERSION.."/luafilesystem_1_6_3_1-lfs."..test_env.lib_extension)) end) it("LuaRocks install only-deps of luasocket packed rock", function() -- cgit v1.2.3-55-g6feb