aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/util/test_env.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index fbb46d82..998aeb2b 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -591,7 +591,11 @@ function test_env.need_rock(rock)
591 if test_env.run.luarocks_noprint_nocov(test_env.quiet("show " .. rock)) then 591 if test_env.run.luarocks_noprint_nocov(test_env.quiet("show " .. rock)) then
592 return true 592 return true
593 else 593 else
594 return test_env.run.luarocks_noprint_nocov(test_env.quiet("install " .. rock)) 594 local ok = test_env.run.luarocks_noprint_nocov(test_env.quiet("install " .. rock))
595 if not ok then
596 print("WARNING: failed installing " .. rock)
597 end
598 return ok
595 end 599 end
596end 600end
597 601
@@ -763,6 +767,7 @@ function test_env.mock_server_init()
763 lfs.chdir(testing_paths.fixtures_dir) 767 lfs.chdir(testing_paths.fixtures_dir)
764 local final_command = test_env.execute_helper(testing_paths.lua .. " " .. testing_paths.util_dir .. "/mock-server.lua &", true, test_env.env_variables) 768 local final_command = test_env.execute_helper(testing_paths.lua .. " " .. testing_paths.util_dir .. "/mock-server.lua &", true, test_env.env_variables)
765 os.execute(final_command) 769 os.execute(final_command)
770 os.execute("sleep 1")
766 lfs.chdir(pwd) 771 lfs.chdir(pwd)
767end 772end
768 773