summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Petrovsky <askjuise@gmail.com>2018-05-30 18:06:08 +0300
committerAlexander Petrovsky <askjuise@gmail.com>2018-05-30 18:06:08 +0300
commite876b42a987486d1a25372edc810765b1a33d167 (patch)
treeaf2c7b1781c5f2883c7d152e6ca78aff3bb39892 /test
parent1979ce39c114b6587959d917588ee1541f5f27b1 (diff)
Fix override_deps test from suite rebar_compile_SUITE
Diffstat (limited to 'test')
-rw-r--r--test/rebar_compile_SUITE.erl13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl
index c5336cf..34a1bc5 100644
--- a/test/rebar_compile_SUITE.erl
+++ b/test/rebar_compile_SUITE.erl
@@ -1272,21 +1272,22 @@ clean_all(Config) ->
{app, PkgName, invalid}]}).
override_deps(Config) ->
- mock_git_resource:mock([{deps, [{some_dep, "0.0.1"},{other_dep, "0.0.1"}]}]),
Deps = rebar_test_utils:expand_deps(git, [{"some_dep", "0.0.1", [{"other_dep", "0.0.1", []}]}]),
TopDeps = rebar_test_utils:top_level_deps(Deps),
+ {SrcDeps, _} = rebar_test_utils:flat_deps(Deps),
+ mock_git_resource:mock([{deps, SrcDeps}]),
RebarConfig = [
{deps, TopDeps},
{overrides, [
{override, some_dep, [
- {deps, []}
- ]}
- ]}
- ],
+ {deps, []}
+ ]}
+ ]}
+ ],
rebar_test_utils:run_and_check(
Config, RebarConfig, ["compile"],
- {ok, [{dep, "some_dep"},{dep_not_exist, "other_dep"}]}
+ {ok, [{dep, "some_dep"}, {dep_not_exist, "other_dep"}]}
).
profile_override_deps(Config) ->