summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Andrade <g@gandrade.net>2019-08-31 18:31:54 +0100
committerGuilherme Andrade <g@gandrade.net>2019-08-31 18:32:48 +0100
commit7311fb2429c1395e40bc20d1894061fda2e3a2f2 (patch)
treec3790a523cf90fa0b11029df51b914b2b7862900
parent10974bb9d5199fdbe1340d141f9a6add95aecf90 (diff)
Add test coverage of `profile_string` overlay variable usage in releases
-rw-r--r--test/rebar_release_SUITE.erl6
1 files changed, 4 insertions, 2 deletions
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"])).