diff options
author | Tristan Sloughter <[email protected]> | 2014-05-07 19:32:17 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2014-05-14 16:06:09 -0500 |
commit | 7d3626779ce5716055b31eed76feb81a9fcb2210 (patch) | |
tree | 13d5dc9d810489c8bcbaf5470a37f45259f4318e /test/rlx_discover_SUITE.erl | |
parent | 227b1ec27d9b4c186366a64f81628843c8a8cc3e (diff) | |
download | relx-7d3626779ce5716055b31eed76feb81a9fcb2210.tar.gz relx-7d3626779ce5716055b31eed76feb81a9fcb2210.tar.bz2 relx-7d3626779ce5716055b31eed76feb81a9fcb2210.zip |
refactor cli args and config file var merging
Diffstat (limited to 'test/rlx_discover_SUITE.erl')
-rw-r--r-- | test/rlx_discover_SUITE.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rlx_discover_SUITE.erl b/test/rlx_discover_SUITE.erl index 8ea95c4..7e7015c 100644 --- a/test/rlx_discover_SUITE.erl +++ b/test/rlx_discover_SUITE.erl @@ -48,10 +48,12 @@ init_per_testcase(_, Config) -> LibDir2 = filename:join([DataDir, create_random_name("lib_dir2_")]), ok = rlx_util:mkdir_p(LibDir1), ok = rlx_util:mkdir_p(LibDir2), - State = rlx_state:new([{lib_dirs, [LibDir1, LibDir2]}], [release]), + State = rlx_state:new([], [{lib_dirs, [LibDir1, LibDir2]}], [release]), + {ConfigProvider, {ok, State1}} = rlx_provider:new(rlx_prv_config, State), + {ok, State2} = rlx_provider:do(ConfigProvider, State1), [{lib1, LibDir1}, {lib2, LibDir2}, - {state, State} | Config]. + {state, State2} | Config]. all() -> @@ -78,6 +80,7 @@ normal_case(Config) -> default_libs, false), {DiscoverProvider, {ok, State1}} = rlx_provider:new(rlx_prv_discover, State0), {ok, State2} = rlx_provider:do(DiscoverProvider, State1), + lists:foreach(fun(App) -> ?assertMatch(true, lists:member(App, rlx_state:available_apps(State2))) end, Apps1), |