From 41c8fba1bc527484809613b36eb0de23f323bb74 Mon Sep 17 00:00:00 2001 From: roboo Date: Sun, 17 Jul 2016 23:12:15 +0200 Subject: Fix of mock server setup --- spec/upload_spec.lua | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'spec') diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index ee397ed4..b239c2f1 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua @@ -20,18 +20,6 @@ local extra_rocks = { "/wsapi-1.6.1-1.src.rock", "/wsapi-xavante-1.6.1-1.src.rock", "/xavante-2.4.0-1.src.rock" --- "copas 2.0.1-1", --- coxpcall 1.16.0-1 --- dkjson 2.5-2 --- luafilesystem 1.6.3-2 --- luasec 0.6-1 --- luasocket 3.0rc1-2 --- restserver 0.1-1 --- restserver-xavante 0.2-1 --- rings 1.3.0-1 --- wsapi 1.6.1-1 --- wsapi-xavante 1.6.1-1 --- xavante 2.4.0-1 } describe("LuaRocks upload tests #blackbox #b_upload", function() @@ -65,7 +53,8 @@ describe("LuaRocks upload tests #blackbox #b_upload", function() describe("LuaRocks upload tests with Xavante server", function() before_each(function() assert.is_true(test_env.need_rock("restserver-xavante")) - os.execute(testing_paths.lua .. " " .. testing_paths.testing_dir .. "/mock-server.lua &") + local final_command = test_env.execute_helper(testing_paths.lua .. " " .. testing_paths.testing_dir .. "/mock-server.lua &", true, test_env.env_variables) + os.execute(final_command) end) after_each(function() -- cgit v1.2.3-55-g6feb