diff options
author | Tristan Sloughter <t@crashfast.com> | 2016-01-15 17:52:16 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2016-01-15 17:52:16 -0600 |
commit | f15802b0462dfcc939ebe1973bae9bbf707638a3 (patch) | |
tree | 29d2c3a02a621e0b31d23bd3552585097467e349 | |
parent | 81efc493e1ad65da4c321b0569b2bb068c3bb4db (diff) | |
parent | 7b79f1b1b0e07d84588a3f5b839d268ef6f8cde6 (diff) |
Merge pull request #1021 from tsloughter/master
convert 'app' to 'application' in eunit_opts to match cmdline args
-rw-r--r-- | src/rebar_prv_eunit.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_eunit.erl b/src/rebar_prv_eunit.erl index f75c4a5..b56c456 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}}}) |