Skip to content

Commit

Permalink
fix tests for new leaner clean runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ferd committed Feb 21, 2024
1 parent c55885d commit 862229b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/rebar/test/rebar_hooks_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,17 @@ deps_clean_hook_namespace(Config) ->
]}
]}
],
%% Only detect dependencies when asked to parse them.
%% Avoids scanning and fetching them only to clean them.
rebar_test_utils:run_and_check(
Config, RebarConfig, ["clean"],
{ok, [{dep_not_exist, "some_dep"}]}
),
rebar_test_utils:run_and_check(
Config, RebarConfig, ["clean", "-a"],
{ok, [{dep, "some_dep"}]}
).
),
ok.

%% Checks that a hook that is defined on an app (not a top level hook of a project with subapps) is run
eunit_app_hooks(Config) ->
Expand Down

0 comments on commit 862229b

Please sign in to comment.