From 7311fb2429c1395e40bc20d1894061fda2e3a2f2 Mon Sep 17 00:00:00 2001 From: Guilherme Andrade Date: Sat, 31 Aug 2019 18:31:54 +0100 Subject: Add test coverage of `profile_string` overlay variable usage in releases --- test/rebar_release_SUITE.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/rebar_release_SUITE.erl') diff --git a/test/rebar_release_SUITE.erl b/test/rebar_release_SUITE.erl index 1bcc61e..1785a97 100644 --- a/test/rebar_release_SUITE.erl +++ b/test/rebar_release_SUITE.erl @@ -301,7 +301,8 @@ overlay_vars(Config) -> {var_bin_string, {{{var_bin_string}}}}, {var_tuple, {{{var_tuple}}}}, {var_list, {{{var_list}}}}, - {var_bin, {{{var_bin}}}}]], + {var_bin, {{{var_bin}}}}, + {var_profile_string, {{profile_string}}}]], % this comes from `rebar3' rebar_test_utils:create_config(AppDir, filename:join([AppDir, "config", "app.config"]), AppConfig), @@ -318,6 +319,7 @@ overlay_vars(Config) -> {var_bin_string, <<"test">>}, {var_tuple, {t, ['atom']}}, {var_list, [a, b, c, 'd']}, - {var_bin, <<23, 24, 25>>}], + {var_bin, <<23, 24, 25>>}, + {var_profile_string, 'default'}], {ok, [ExpectedSysconfig]} = file:consult(filename:join([AppDir, "_build/default/rel", Name, "releases", Vsn, "sys.config"])). -- cgit v1.1