diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-20 15:18:29 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 15:18:29 -0300 |
commit | 568624c42d3ce2e0781e644e881f4b696424829f (patch) | |
tree | d5f18e3f71adfa03829dd8eb85841580a63ddd04 /spec/util | |
parent | dbd8c0dcdc50f4b79ce616221c43de03356e8264 (diff) | |
download | luarocks-568624c42d3ce2e0781e644e881f4b696424829f.tar.gz luarocks-568624c42d3ce2e0781e644e881f4b696424829f.tar.bz2 luarocks-568624c42d3ce2e0781e644e881f4b696424829f.zip |
fs: always check for failure of fs.which_tool (#1157)
Diffstat (limited to 'spec/util')
-rw-r--r-- | spec/util/test_env.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index d4591c91..8aebd74e 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
@@ -709,7 +709,9 @@ end | |||
709 | --- Create configs for luacov and several versions of Luarocks | 709 | --- Create configs for luacov and several versions of Luarocks |
710 | -- configs needed for some tests. | 710 | -- configs needed for some tests. |
711 | local function create_configs() | 711 | local function create_configs() |
712 | -- testing_config.lua and testing_config_show_downloads.lua | 712 | -- testing_config.lua |
713 | -- testing_config_show_downloads.lua | ||
714 | -- testing_config_no_downloader.lua | ||
713 | local config_content = substitute([[ | 715 | local config_content = substitute([[ |
714 | rocks_trees = { | 716 | rocks_trees = { |
715 | "%{testing_tree}", | 717 | "%{testing_tree}", |
@@ -737,6 +739,8 @@ local function create_configs() | |||
737 | test_env.write_file(test_env.testing_paths.testrun_dir .. "/testing_config.lua", config_content .. " \nweb_browser = \"true\"") | 739 | test_env.write_file(test_env.testing_paths.testrun_dir .. "/testing_config.lua", config_content .. " \nweb_browser = \"true\"") |
738 | test_env.write_file(test_env.testing_paths.testrun_dir .. "/testing_config_show_downloads.lua", config_content | 740 | test_env.write_file(test_env.testing_paths.testrun_dir .. "/testing_config_show_downloads.lua", config_content |
739 | .. "show_downloads = true \n rocks_servers={\"http://luarocks.org/repositories/rocks\"}") | 741 | .. "show_downloads = true \n rocks_servers={\"http://luarocks.org/repositories/rocks\"}") |
742 | test_env.write_file(test_env.testing_paths.testrun_dir .. "/testing_config_no_downloader.lua", config_content | ||
743 | .. "variables = { WGET = 'invalid', CURL = 'invalid' }") | ||
740 | 744 | ||
741 | -- testing_config_sftp.lua | 745 | -- testing_config_sftp.lua |
742 | config_content = substitute([[ | 746 | config_content = substitute([[ |