Skip to content

Commit 5f83340

Browse files
committed
Fix test broken by github.com/lua/lua changes
1 parent 893ea86 commit 5f83340

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/cli_test.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def test_verbose_install_bleeding_edge_luajit_with_latest_luarocks(self):
7676
self.assertSuccess(["hererocks-test"], ["LuaJIT 2.1.0"])
7777

7878
self.assertHererocksSuccess(["--luajit", "@v2.1", "--luarocks", "latest"], ["already installed"])
79+
self.assertHererocksSuccess(["--show"], ["cloned from https://github.com/LuaJIT/LuaJIT"])
7980

8081
def test_install_lua_5_1_without_compat_without_readline_with_old_luarocks(self):
8182
self.assertHererocksSuccess(["--lua", "5.1", "--compat", "none", "--no-readline", "--luarocks", "2.0.8"])
@@ -112,18 +113,16 @@ def test_cached_lua_5_2_build(self):
112113
["--lua", "5.2", "--ignore-installed", "--compat", "none", "--builds", os.path.join("test", "builds")],
113114
["compat: none) (cached)"])
114115

115-
def test_install_lua_from_given_git_repo_with_luarocks_from_local_sources(self):
116+
def test_install_lua_5_2_with_luarocks_from_local_sources(self):
116117
local_luarocks = os.path.join("test", "luarocks")
117118

118119
if not os.path.exists(local_luarocks):
119120
self.assertSuccess([
120121
"git", "clone", "https://github.com/keplerproject/luarocks",
121122
"--depth=1", local_luarocks], from_prefix=False)
122123

123-
self.assertHererocksSuccess(["--lua", "https://github.com/lua/[email protected]", "--luarocks", local_luarocks])
124-
self.assertSuccess(["lua", "-v"], ["Lua 5.1.3"])
125-
self.assertHererocksSuccess(["--show"], [
126-
"Lua 5.1", "cloned from https://github.com/lua/lua", "from local sources"])
124+
self.assertHererocksSuccess(["--lua", "5.2", "--luarocks", local_luarocks])
125+
self.assertHererocksSuccess(["--show"], ["from local sources"])
127126

128127
def test_activate_scripts(self):
129128
self.assertHererocksSuccess(["--lua", "5.1"], location=os.path.join("here", "bad (dir) 1"))

0 commit comments

Comments
 (0)