diff options
author | Jared Morrow <jared@basho.com> | 2013-12-03 13:02:58 -0800 |
---|---|---|
committer | Jared Morrow <jared@basho.com> | 2013-12-03 13:02:58 -0800 |
commit | 7e81b222187d49866d8b3b3e0e1f4959dfa625d6 (patch) | |
tree | a93ee3ed63f67e574c45436f5b9300770f50624b /src/rebar_erlc_compiler.erl | |
parent | 30531b6d1b960ad01fb3c857489ffa494112893b (diff) | |
parent | 55d15394048148f9d9f26b0c509590e7fe0f4cfb (diff) |
Merge pull request #152 from tuncer/test-erl_opts
Fix erl_opts use
Diffstat (limited to 'src/rebar_erlc_compiler.erl')
-rw-r--r-- | src/rebar_erlc_compiler.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index 4157ba4..dbefa4a 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -157,7 +157,8 @@ test_compile(Config, Cmd, OutDir) -> %% Compile erlang code to OutDir, using a tweaked config %% with appropriate defines for eunit, and include all the test modules %% as well. - ok = doterl_compile(test_compile_config(Config, Cmd), OutDir, TestErls), + ok = doterl_compile(test_compile_config(Config, ErlOpts, Cmd), + OutDir, TestErls), {ok, SrcErls}. @@ -201,12 +202,11 @@ info_help(Description) -> {yrl_first_files, []} ]). -test_compile_config(Config, Cmd) -> +test_compile_config(Config, ErlOpts, Cmd) -> {Config1, TriqOpts} = triq_opts(Config), {Config2, PropErOpts} = proper_opts(Config1), {Config3, EqcOpts} = eqc_opts(Config2), - ErlOpts = rebar_config:get_list(Config3, erl_opts, []), OptsAtom = list_to_atom(Cmd ++ "_compile_opts"), EunitOpts = rebar_config:get_list(Config3, OptsAtom, []), Opts0 = [{d, 'TEST'}] ++ |