summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-01-17 13:08:50 +0100
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-01-17 13:08:50 +0100
commitf1b1a1ad87a7f4ed6639c0d200fcf3d52a129dd6 (patch)
treece5f7cbe64280727d39706175a65ada688fc2c8e /test
parent895fb699a2dfd534aba810cf07a03f33bbb9e1cd (diff)
downloadrabbitmq-server-git-f1b1a1ad87a7f4ed6639c0d200fcf3d52a129dd6.tar.gz
unit_SUITE: Declare test plugins' dependencies
Those plugins are created at runtime. We just need to populate the list of `applications` they depend on. This list must include `rabbit`. This will be even required once #rabbitmq/rabbitmq-server#2212 is accepted.
Diffstat (limited to 'test')
-rw-r--r--test/unit_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/unit_SUITE.erl b/test/unit_SUITE.erl
index e8abd2ae90..40a54c65ae 100644
--- a/test/unit_SUITE.erl
+++ b/test/unit_SUITE.erl
@@ -937,7 +937,12 @@ listing_plugins_from_multiple_directories(Config) ->
lists:foreach(fun({Dir, AppName, Vsn}) ->
EzName = filename:join([Dir, io_lib:format("~s-~s.ez", [AppName, Vsn])]),
AppFileName = lists:flatten(io_lib:format("~s-~s/ebin/~s.app", [AppName, Vsn, AppName])),
- AppFileContents = list_to_binary(io_lib:format("~p.", [{application, AppName, [{vsn, Vsn}]}])),
+ AppFileContents = list_to_binary(
+ io_lib:format(
+ "~p.",
+ [{application, AppName,
+ [{vsn, Vsn},
+ {applications, [kernel, stdlib, rabbit]}]}])),
{ok, {_, EzData}} = zip:zip(EzName, [{AppFileName, AppFileContents}], [memory]),
ok = file:write_file(EzName, EzData)
end,