From 7b79f1b1b0e07d84588a3f5b839d268ef6f8cde6 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 15 Jan 2016 15:36:38 -0600 Subject: convert 'app' to 'application' in eunit_opts to match cmdline args --- src/rebar_prv_eunit.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl index b9ac6b8..c9e82cb 100644 --- a/src/rebar_prv_eunit.erl +++ b/src/rebar_prv_eunit.erl @@ -139,7 +139,8 @@ normalize(Key, Value) -> {Key, list_to_atom(Value)}. cfg_tests(State) -> case rebar_state:get(State, eunit_tests, []) of - Tests when is_list(Tests) -> Tests; + Tests when is_list(Tests) -> + lists:map(fun({app, App}) -> {application, App}; (T) -> T end, Tests); Wrong -> %% probably a single non list term ?PRV_ERROR({badconfig, {"Value `~p' of option `~p' must be a list", {Wrong, eunit_tests}}}) -- cgit v1.1