summaryrefslogtreecommitdiff
path: root/src/rebar_ct.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_ct.erl')
-rw-r--r--src/rebar_ct.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl
index 626144e..b3e77b0 100644
--- a/src/rebar_ct.erl
+++ b/src/rebar_ct.erl
@@ -64,10 +64,10 @@ run_test_if_present(TestDir, Config, File) ->
run_test(TestDir, Config, _File) ->
{Cmd, RawLog} = make_cmd(TestDir, Config),
clear_log(RawLog),
- case rebar_config:get_global(verbose, "0") of
- "0" ->
+ case rebar_config:is_verbose() of
+ false ->
Output = " >> " ++ RawLog ++ " 2>&1";
- _ ->
+ true ->
Output = " 2>&1 | tee -a " ++ RawLog
end,
@@ -112,11 +112,11 @@ check_log(RawLog) ->
%% Show the log if it hasn't already been shown because verbose was on
show_log(RawLog) ->
?CONSOLE("Showing log\n", []),
- case rebar_config:get_global(verbose, "0") of
- "0" ->
+ case rebar_config:is_verbose() of
+ false ->
{ok, Contents} = file:read_file(RawLog),
?CONSOLE("~s", [Contents]);
- _ ->
+ true ->
ok
end.