From 714d887f99dad19d406de36e6d9d88739066f4f1 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Mon, 11 Sep 2017 13:05:20 +0300 Subject: Pass correct rockspec to upload tests that should fail for other reasons Most tests simply check that some command succeeds or fails. When failure is expected, failure reason is not checked. In this case, upload commands was failing because passed rockspec did not exist and not for reason tests planned. --- spec/upload_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index ff39cb96..cd175730 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua @@ -42,12 +42,12 @@ describe("LuaRocks upload tests #blackbox #b_upload", function() end) it("LuaRocks upload api key invalid and skip-pack", function() - assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack luacov-0.11.0-1.rockspec")) + assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) end) it("LuaRocks upload force #unix", function() assert.is_true(run.luarocks_bool("install lua-cjson")) - assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force luacov-0.11.0-1.rockspec")) + assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) assert.is_true(run.luarocks_bool("install lua-cjson")) end) -- cgit v1.2.3-55-g6feb