From 61bc82aadad1d86a0b892d49ba0217ba01d2e088 Mon Sep 17 00:00:00 2001 From: "Alexander V. Nikolaev" Date: Wed, 29 May 2013 15:59:26 +0300 Subject: Check presence of each beam listed in .app This allow to build riak, because one of riak deps (node_package) have stuff in priv/ and valid node_package.app, but no one .beam files. --- test/rlx_discover_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/rlx_discover_SUITE.erl') diff --git a/test/rlx_discover_SUITE.erl b/test/rlx_discover_SUITE.erl index d404d8c..c4455e1 100644 --- a/test/rlx_discover_SUITE.erl +++ b/test/rlx_discover_SUITE.erl @@ -88,7 +88,7 @@ normal_case(Config) -> ?assertMatch(Length, erlang:length(rlx_state:available_apps(State2))). no_beam_case(Config) -> - %% We silently ignore apps with no beams + %% do not ignore apps with no beam files if no modules in app file LibDir1 = proplists:get_value(lib1, Config), _Apps1 = [(fun({Name, Vsn}) -> create_app(LibDir1, Name, Vsn) @@ -111,8 +111,8 @@ no_beam_case(Config) -> write_app_file(AppDir, BadName, BadVsn), State0 = proplists:get_value(state, Config), {DiscoverProvider, {ok, State1}} = rlx_provider:new(rlx_prv_discover, State0), - EbinDir = filename:join([LibDir2, BadName, <<"ebin">>]), - ?assertMatch({error, {_, [{no_beam_files, EbinDir}]}}, + + ?assertMatch({ok, _}, rlx_provider:do(DiscoverProvider, State1)). bad_ebin_case(Config) -> -- cgit v1.2.3