diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-03-13 13:08:03 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-03-13 19:08:05 +0000 |
commit | 870948dd2d4e208dd98ada966a109cf7156b3e4d (patch) | |
tree | a451149152e2cf4716db54bc711cd6e2d5685a1b /spec/test_spec.lua | |
parent | 36d93bdf7ab347c4bf30aa84afd365c0f451b7b9 (diff) | |
download | luarocks-870948dd2d4e208dd98ada966a109cf7156b3e4d.tar.gz luarocks-870948dd2d4e208dd98ada966a109cf7156b3e4d.tar.bz2 luarocks-870948dd2d4e208dd98ada966a109cf7156b3e4d.zip |
tests: minor tweaks
Diffstat (limited to 'spec/test_spec.lua')
-rw-r--r-- | spec/test_spec.lua | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/spec/test_spec.lua b/spec/test_spec.lua index 194dcfd1..6d546522 100644 --- a/spec/test_spec.lua +++ b/spec/test_spec.lua | |||
@@ -19,7 +19,7 @@ local extra_rocks = { | |||
19 | 19 | ||
20 | describe("luarocks test #integration", function() | 20 | describe("luarocks test #integration", function() |
21 | 21 | ||
22 | before_each(function() | 22 | lazy_setup(function() |
23 | test_env.setup_specs(extra_rocks) | 23 | test_env.setup_specs(extra_rocks) |
24 | end) | 24 | end) |
25 | 25 | ||
@@ -35,21 +35,6 @@ describe("luarocks test #integration", function() | |||
35 | 35 | ||
36 | describe("busted backend", function() | 36 | describe("busted backend", function() |
37 | 37 | ||
38 | lazy_setup(function() | ||
39 | -- Try to cache rocks from the host system to speed up test | ||
40 | for _, r in ipairs(extra_rocks) do | ||
41 | r = test_env.V(r) | ||
42 | local n, v = r:match("^/(.*)%-([^%-]+)%-%d+%.[^%-]+$") | ||
43 | os.execute("luarocks pack " .. n .. " " .. v) | ||
44 | end | ||
45 | if test_env.TEST_TARGET_OS == "windows" then | ||
46 | os.execute("move *.rock " .. testing_paths.testing_server) | ||
47 | else | ||
48 | os.execute("mv *.rock " .. testing_paths.testing_server) | ||
49 | end | ||
50 | test_env.run.luarocks_admin_nocov("make_manifest " .. testing_paths.testing_server) | ||
51 | end) | ||
52 | |||
53 | it("with rockspec, installing busted", function() | 38 | it("with rockspec, installing busted", function() |
54 | finally(function() | 39 | finally(function() |
55 | -- delete downloaded and unpacked files | 40 | -- delete downloaded and unpacked files |