aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-04-05 16:30:27 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-04-11 14:38:06 -0300
commitb314a84bf814bcf3a6ac596ccb43699a5a3c36b8 (patch)
tree73ed3f7b823e4fefa38146c64b7e7cf9e607d507 /spec
parent1f213a5b07bb6c1aeff80c3bbe74b8230dd506f6 (diff)
downloadluarocks-b314a84bf814bcf3a6ac596ccb43699a5a3c36b8.tar.gz
luarocks-b314a84bf814bcf3a6ac596ccb43699a5a3c36b8.tar.bz2
luarocks-b314a84bf814bcf3a6ac596ccb43699a5a3c36b8.zip
Tests: make verbose mode even more verbose
When running busted with `-Xhelper verbose`, now it will display the full output of every command.
Diffstat (limited to 'spec')
-rw-r--r--spec/util/test_env.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index 94008913..0ddcfe43 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -155,7 +155,7 @@ local function execute_bool(command, print_command, env_variables)
155 end 155 end
156 local ok = test_env.execute(command .. redirect) 156 local ok = test_env.execute(command .. redirect)
157 if redirect ~= "" then 157 if redirect ~= "" then
158 if not ok then 158 if not ok or test_env.VERBOSE then
159 local fd = io.open(redirect_filename, "r") 159 local fd = io.open(redirect_filename, "r")
160 if fd then 160 if fd then
161 print(fd:read("*a")) 161 print(fd:read("*a"))