From 28124aadbeaaa35f2c22b12cae96092466c1ded4 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 23 Apr 2018 10:56:35 -0300 Subject: Tests: ensure that extra_rocks specified in test files were downloaded --- spec/util/test_env.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 998aeb2b..7b5b66b9 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua @@ -324,9 +324,9 @@ local function download_rocks(urls, save_path) -- check if already downloaded if not test_env.exists(save_path .. url) then if test_env.TEST_TARGET_OS == "windows" then - execute_bool(test_env.testing_paths.win_tools .. "/wget -cP " .. save_path .. " " .. luarocks_repo .. url .. " --no-check-certificate") + assert(execute_bool(test_env.testing_paths.win_tools .. "/wget -cP " .. save_path .. " " .. luarocks_repo .. url .. " --no-check-certificate")) else - execute_bool("wget -cP " .. save_path .. " " .. luarocks_repo .. url) + assert(execute_bool("wget -cP " .. save_path .. " " .. luarocks_repo .. url)) end make_manifest = true end -- cgit v1.2.3-55-g6feb