diff options
author | Jordan Wilberding <[email protected]> | 2014-10-11 11:52:43 -0500 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2014-10-11 11:52:43 -0500 |
commit | a9c3c235ac81d1a17cf2feb8fbfbd70d6a57edff (patch) | |
tree | a17913740b0ad66ceb0139ded8df30514380ece6 /test/rlx_command_SUITE.erl | |
parent | d4d197ca142913b81fc192357dff18d1ed266921 (diff) | |
parent | fca419632793346d0f3732ed927f6862ed6bf85a (diff) | |
download | relx-a9c3c235ac81d1a17cf2feb8fbfbd70d6a57edff.tar.gz relx-a9c3c235ac81d1a17cf2feb8fbfbd70d6a57edff.tar.bz2 relx-a9c3c235ac81d1a17cf2feb8fbfbd70d6a57edff.zip |
Merge pull request #227 from tsloughter/master
Rebar3 support and code sharing
Diffstat (limited to 'test/rlx_command_SUITE.erl')
-rw-r--r-- | test/rlx_command_SUITE.erl | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/rlx_command_SUITE.erl b/test/rlx_command_SUITE.erl index 26783ff..db2794d 100644 --- a/test/rlx_command_SUITE.erl +++ b/test/rlx_command_SUITE.erl @@ -61,19 +61,18 @@ normal_passing_case(Config) -> "-n", RelName, "-v", RelVsn, "-o", Outdir, "-a", "lib1:"++binary_to_list(Lib1)], {ok, {Opts, Targets}} = getopt:parse(relx:opt_spec_list(), CmdLine), {ok, State} = rlx_cmd_args:args2state(Opts, Targets), - {ConfigProvider, {ok, State1}} = rlx_provider:new(rlx_prv_config, State), - {ok, State2} = rlx_provider:do(ConfigProvider, State1), - Overrides = rlx_state:overrides(State2), + {ok, State1} = rlx_config:do(State), + Overrides = rlx_state:overrides(State1), ?assertMatch([{lib1, Lib1}], Overrides), ?assertMatch([Lib1, Lib2], - rlx_state:lib_dirs(State2)), - ?assertMatch(Outdir, rlx_state:base_output_dir(State2)), + rlx_state:lib_dirs(State1)), + ?assertMatch(Outdir, rlx_state:base_output_dir(State1)), ?assertMatch([{app1,{{33,33},{[],[<<"build4">>]}},lte}, {app2, {{33,22},{[],[]}}, {{45,22},{[],[<<"build">>,21]}}, between}], - rlx_state:goals(State2)). + rlx_state:goals(State1)). lib_expansion_case(Config) -> DataDir = proplists:get_value(data_dir, Config), @@ -85,10 +84,9 @@ lib_expansion_case(Config) -> CmdLine = ["-l", filename:join(DataDir, "*")], {ok, {Opts, Targets}} = getopt:parse(relx:opt_spec_list(), CmdLine), {ok, State} = rlx_cmd_args:args2state(Opts, Targets), - {ConfigProvider, {ok, State1}} = rlx_provider:new(rlx_prv_config, State), - {ok, State2} = rlx_provider:do(ConfigProvider, State1), + {ok, State1} = rlx_config:do(State), ?assertMatch([Lib1, Lib2], - rlx_state:lib_dirs(State2)). + rlx_state:lib_dirs(State1)). lib_fail_case(Config) -> DataDir = proplists:get_value(data_dir, Config), |