summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2016-01-15 15:36:38 -0600
committerTristan Sloughter <t@crashfast.com>2016-01-15 15:36:38 -0600
commit7b79f1b1b0e07d84588a3f5b839d268ef6f8cde6 (patch)
treed5a324b4fe91e8a86ddd1af8b681b8e88ad7d4cb /src
parent6252a0bd2c0071dd047de7aebd6b905ac9a72667 (diff)
convert 'app' to 'application' in eunit_opts to match cmdline args
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_eunit.erl3
1 files changed, 2 insertions, 1 deletions
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}}})