From b314a84bf814bcf3a6ac596ccb43699a5a3c36b8 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 5 Apr 2018 16:30:27 -0300 Subject: Tests: make verbose mode even more verbose When running busted with `-Xhelper verbose`, now it will display the full output of every command. --- spec/util/test_env.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') 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) end local ok = test_env.execute(command .. redirect) if redirect ~= "" then - if not ok then + if not ok or test_env.VERBOSE then local fd = io.open(redirect_filename, "r") if fd then print(fd:read("*a")) -- cgit v1.2.3-55-g6feb