From cd2f72d2aac41720b6018c440db33f0d52297e6b Mon Sep 17 00:00:00 2001 From: omarkj Date: Wed, 26 Nov 2014 10:16:08 -0800 Subject: Transform silent_connections well and parse verbosity. Verbosity can be a integer but I am parsing it as a term. This will work for integers as well as terms. --- src/rebar_prv_common_test.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index c61e752..59f5565 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -113,11 +113,11 @@ transform_opts([{multiply_timetraps, MultiplyTimetraps}|Rest], Acc) -> ec_cnv:to_integer(MultiplyTimetraps)}|Acc]); transform_opts([{event_handler, EventHandler}|Rest], Acc) -> transform_opts(Rest, [{event_handler, parse_term(EventHandler)}|Acc]); +transform_opts([{silent_connections, "all"}|Rest], Acc) -> + transform_opts(Rest, [{silent_connections, all}|Acc]); transform_opts([{silent_connections, SilentConnections}|Rest], Acc) -> transform_opts(Rest, [{silent_connections, to_atoms(split_string(SilentConnections))}|Acc]); -transform_opts([{verbosity, "all"}|Rest], Acc) -> - transform_opts(Rest, [{verbosity, all}|Acc]); transform_opts([{verbosity, Verbosity}|Rest], Acc) -> transform_opts(Rest, [{verbosity, parse_term(Verbosity)}|Acc]); transform_opts([{logopts, LogOpts}|Rest], Acc) -> -- cgit v1.1