summaryrefslogtreecommitdiff
path: root/inttest/t_custom_config/t_custom_config_rt.erl
diff options
context:
space:
mode:
authorTim Watson <watson.timothy@gmail.com>2011-09-06 09:51:38 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-10-05 13:49:27 +0200
commit30d1cdb31bbcc573cf3f31e67fdf0c1140b731fc (patch)
tree7594315493874c612fede7b82421f2c0662d430a /inttest/t_custom_config/t_custom_config_rt.erl
parent0279cb2fb9a96a5a79393d424ed087e5909645e8 (diff)
Fix config handling in root_dir
Avoid overwriting custom config (passed with -C) when we are processing the base_dir in rebar_core.
Diffstat (limited to 'inttest/t_custom_config/t_custom_config_rt.erl')
-rw-r--r--inttest/t_custom_config/t_custom_config_rt.erl11
1 files changed, 9 insertions, 2 deletions
diff --git a/inttest/t_custom_config/t_custom_config_rt.erl b/inttest/t_custom_config/t_custom_config_rt.erl
index 8a4e2ab..d333b11 100644
--- a/inttest/t_custom_config/t_custom_config_rt.erl
+++ b/inttest/t_custom_config/t_custom_config_rt.erl
@@ -5,17 +5,24 @@
-include_lib("eunit/include/eunit.hrl").
files() ->
- [{copy, "custom.config", "custom.config"},
+ [{copy, "../../rebar", "rebar"},
+ {copy, "custom.config", "custom.config"},
{create, "ebin/custom_config.app", app(custom_config, [custom_config])}].
run(Dir) ->
retest_log:log(debug, "Running in Dir: ~s~n", [Dir]),
- Ref = retest:sh("rebar -C custom.config check-deps -v", [{async, true}]),
+ Ref = retest:sh("./rebar -C custom.config check-deps -v", [{async, true}]),
{ok, Captured} =
retest:sh_expect(Ref,
"DEBUG: Consult config file .*/custom.config.*",
[{capture, all, list}]),
+ {ok, Missing} =
+ retest:sh_expect(Ref,
+ "DEBUG: Missing deps : \\[\\{dep,bad_name,"
+ "boo,\"\\.\",undefined\\}\\]",
+ [{capture, all, list}]),
retest_log:log(debug, "[CAPTURED]: ~s~n", [Captured]),
+ retest_log:log(debug, "[Missing]: ~s~n", [Missing]),
ok.
%%