diff options
Diffstat (limited to 'test/rlx_release_SUITE.erl')
-rw-r--r-- | test/rlx_release_SUITE.erl | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/test/rlx_release_SUITE.erl b/test/rlx_release_SUITE.erl index 6f067dc..112afc8 100644 --- a/test/rlx_release_SUITE.erl +++ b/test/rlx_release_SUITE.erl @@ -61,10 +61,9 @@ init_per_testcase(_, Config) -> LibDir1 = filename:join([DataDir, create_random_name("lib_dir1_")]), ok = rlx_util:mkdir_p(LibDir1), State = rlx_state:new([], [{lib_dirs, [LibDir1]}], [release]), - {ConfigProvider, {ok, State1}} = rlx_provider:new(rlx_prv_config, State), - {ok, State2} = rlx_provider:do(ConfigProvider, State1), + {ok, State1} = rlx_config:do(State), [{lib1, LibDir1}, - {state, State2} | Config]. + {state, State1} | Config]. all() -> [make_release, make_extend_release, make_scriptless_release, @@ -178,7 +177,7 @@ make_invalid_config_release(Config) -> goal_app_2,]}"), OutputDir = filename:join([proplists:get_value(data_dir, Config), create_random_name("relx-output")]), - {error, {rlx_prv_config, + {error, {rlx_config, {consult, _, _}}} = relx:do(undefined, undefined, [], [LibDir1], 3, OutputDir, ConfigFile). @@ -575,7 +574,7 @@ overlay_release(Config) -> Error -> erlang:throw({failed_to_consult, Error}) end, - + {ok, ReadFileInfo} = file:read_file_info(filename:join([OutputDir, "foo", "test_template_resolved"])), ?assertEqual(8#100777, ReadFileInfo#file_info.mode), @@ -742,12 +741,12 @@ make_relup_release(Config) -> {ok, _} = relx:do(foo, "0.0.2", [], [LibDir1], 3, OutputDir, ConfigFile), {ok, State} = relx:do([{relname, foo}, - {relvsn, "0.0.3"}, - {goals, []}, - {lib_dirs, [LibDir1]}, - {log_level, 3}, - {output_dir, OutputDir}, - {config, ConfigFile}], ["release", "relup"]), + {relvsn, "0.0.3"}, + {goals, []}, + {lib_dirs, [LibDir1]}, + {log_level, 3}, + {output_dir, OutputDir}, + {config, ConfigFile}], ["release", "relup"]), %% we should have one 'resolved' release and three discovered realized_releases. ?assertMatch([{foo, "0.0.1"}, |