diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-01-01 00:08:00 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-01-01 00:08:00 +0100 |
commit | 0817dec7ca3a24955cc8f08fb359bf0f77ae1f4d (patch) | |
tree | a5b8969f1ba09542d3d9afdaf905a293fb49e0bc /src/rebar_ct.erl | |
parent | 48048c82a6b56a7fc4f0ceeb2265623d6d7129dd (diff) |
Rolled back getopt to restore custom variables
Diffstat (limited to 'src/rebar_ct.erl')
-rw-r--r-- | src/rebar_ct.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl index 7e6b745..2a03b11 100644 --- a/src/rebar_ct.erl +++ b/src/rebar_ct.erl @@ -73,8 +73,8 @@ run_test_if_present(TestDir, Config, File) -> run_test(TestDir, Config, _File) -> {Cmd, RawLog} = make_cmd(TestDir, Config), clear_log(RawLog), - case rebar_config:is_verbose() of - true -> + case rebar_config:get_global(verbose, "0") of + "0" -> Output = " >> " ++ RawLog ++ " 2>&1"; _ -> Output = " 2>&1 | tee -a " ++ RawLog @@ -125,8 +125,8 @@ 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:is_verbose() of - true -> + case rebar_config:get_global(verbose, "0") of + "0" -> {ok, Contents} = file:read_file(RawLog), ?CONSOLE("~s", [Contents]); _ -> |