diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2020-01-17 13:08:50 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2020-01-17 13:08:50 +0100 |
| commit | f1b1a1ad87a7f4ed6639c0d200fcf3d52a129dd6 (patch) | |
| tree | ce5f7cbe64280727d39706175a65ada688fc2c8e /test | |
| parent | 895fb699a2dfd534aba810cf07a03f33bbb9e1cd (diff) | |
| download | rabbitmq-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.erl | 7 |
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, |
