From 15596a890de7f7444c3d8e86d4fa752d85b10e2d Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 21 May 2026 18:51:27 -0300 Subject: tests: remove duplicate from quick tests --- spec/make_spec.lua | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'spec') diff --git a/spec/make_spec.lua b/spec/make_spec.lua index b0572630..e2ad1700 100644 --- a/spec/make_spec.lua +++ b/spec/make_spec.lua @@ -137,41 +137,6 @@ describe("luarocks make #integration", function() end) end) - it("supports --pin #pinning", function() - test_env.run_in_tmp(function(tmpdir) - write_file("test-1.0-1.rockspec", [[ - package = "test" - version = "1.0-1" - source = { - url = "file://]] .. tmpdir:gsub("\\", "/") .. [[/test.lua" - } - dependencies = { - "a_rock 1.0" - } - build = { - type = "builtin", - modules = { - test = "test.lua" - } - } - ]]) - write_file("test.lua", "return {}") - - assert.is_true(run.luarocks_bool("make --server=" .. testing_paths.fixtures_dir .. "/a_repo --pin --tree=lua_modules")) - assert.is.truthy(lfs.attributes("./lua_modules/lib/luarocks/rocks-" .. test_env.lua_version .. "/test/1.0-1/test-1.0-1.rockspec")) - assert.is.truthy(lfs.attributes("./lua_modules/lib/luarocks/rocks-" .. test_env.lua_version .. "/a_rock/1.0-1/a_rock-1.0-1.rockspec")) - local lockfilename = "./lua_modules/lib/luarocks/rocks-" .. test_env.lua_version .. "/test/1.0-1/luarocks.lock" - assert.is.truthy(lfs.attributes(lockfilename)) - local lockdata = loadfile(lockfilename)() - assert.same({ - dependencies = { - ["a_rock"] = "1.0-1", - ["lua"] = test_env.lua_version .. "-1", - } - }, lockdata) - end, finally) - end) - it("respects luarocks.lock when present #pinning", function() test_env.run_in_tmp(function(tmpdir) write_file("test-2.0-1.rockspec", [[ -- cgit v1.2.3-55-g6feb