aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2014-05-24 10:21:48 +0200
committerJordan Wilberding <[email protected]>2014-05-24 10:21:48 +0200
commit69daf475a9219b0c400a686d17590143ecd037ae (patch)
treeec12996b909f84482c5234a2c0593ea3af4802bf /test
parent6a50af3feb7186d86365aafeafadb3822973e343 (diff)
parentf2864cb3ba69c056d532467262335f28d1aa9d19 (diff)
downloadrelx-69daf475a9219b0c400a686d17590143ecd037ae.tar.gz
relx-69daf475a9219b0c400a686d17590143ecd037ae.tar.bz2
relx-69daf475a9219b0c400a686d17590143ecd037ae.zip
Merge pull request #188 from tsloughter/master
fix for setting overrides with -a
Diffstat (limited to 'test')
-rw-r--r--test/rlx_command_SUITE.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rlx_command_SUITE.erl b/test/rlx_command_SUITE.erl
index c34ed88..26783ff 100644
--- a/test/rlx_command_SUITE.erl
+++ b/test/rlx_command_SUITE.erl
@@ -58,11 +58,13 @@ normal_passing_case(Config) ->
RelName = "foo-release",
RelVsn = "33.222",
CmdLine = ["-V", LogLevel, "-g",Goal1,"-g",Goal2, "-l", Lib1, "-l", Lib2,
- "-n", RelName, "-v", RelVsn, "-o", Outdir],
+ "-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),
+ ?assertMatch([{lib1, Lib1}], Overrides),
?assertMatch([Lib1, Lib2],
rlx_state:lib_dirs(State2)),
?assertMatch(Outdir, rlx_state:base_output_dir(State2)),