From 5143d1b978501e3b16a6abe7fdfc8160157ae7ef Mon Sep 17 00:00:00 2001 From: Pierre Chapuis Date: Mon, 28 Nov 2022 15:10:41 +0100 Subject: fix `test --prepare` with non-busted rocks (#1453) * fix `test --prepare` with non-busted rocks --- spec/test_spec.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'spec') diff --git a/spec/test_spec.lua b/spec/test_spec.lua index 33643097..4be0567f 100644 --- a/spec/test_spec.lua +++ b/spec/test_spec.lua @@ -98,6 +98,15 @@ describe("luarocks test #integration", function() end) end) + + describe("command backend", function() + describe("prepare", function() + it("works with non-busted rocks", function() + write_file("test.lua", "", finally) + assert.is_true(run.luarocks_bool("test --prepare " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec")) + end) + end) + end) end) test_env.unload_luarocks() -- cgit v1.2.3-55-g6feb