summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromarkj <omarkj@gmail.com>2014-11-26 10:16:08 -0800
committeromarkj <omarkj@gmail.com>2014-11-26 10:18:34 -0800
commitcd2f72d2aac41720b6018c440db33f0d52297e6b (patch)
tree9cc678f46545d1ff26358795b8b3f337dd6e72eb
parenta93723189f49fab1fd02c5ad1b6b1dc88be86528 (diff)
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.
-rw-r--r--src/rebar_prv_common_test.erl4
1 files changed, 2 insertions, 2 deletions
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) ->