mirror of
https://github.com/correl/rebar.git
synced 2024-11-14 19:19:30 +00:00
Wrap cover:stop() call as rebar_cover_utils:exit/0
This commit is contained in:
parent
8fea315b0b
commit
1363ba3038
3 changed files with 7 additions and 3 deletions
|
@ -30,7 +30,8 @@
|
|||
%% for internal use only
|
||||
-export([init/3,
|
||||
perform_cover/4,
|
||||
close/1]).
|
||||
close/1,
|
||||
exit/0]).
|
||||
|
||||
-include("rebar.hrl").
|
||||
|
||||
|
@ -52,6 +53,9 @@ close(not_enabled) ->
|
|||
close(F) ->
|
||||
ok = file:close(F).
|
||||
|
||||
exit() ->
|
||||
cover:stop().
|
||||
|
||||
init(false, _BeamFiles, _TargetDir) ->
|
||||
{ok, not_enabled};
|
||||
init(true, BeamFiles, TargetDir) ->
|
||||
|
|
|
@ -182,7 +182,7 @@ run_eunit(Config, CodePath, SrcErls) ->
|
|||
|
||||
%% Stop cover to clean the cover_server state. This is important if we want
|
||||
%% eunit+cover to not slow down when analyzing many Erlang modules.
|
||||
ok = cover:stop(),
|
||||
ok = rebar_cover_utils:exit(),
|
||||
|
||||
case EunitResult of
|
||||
ok ->
|
||||
|
|
|
@ -185,7 +185,7 @@ run1(QC, QCOpts, Config, CodePath, SrcErls) ->
|
|||
rebar_cover_utils:perform_cover(Config, FilteredModules, SrcModules,
|
||||
qc_dir()),
|
||||
rebar_cover_utils:close(CoverLog),
|
||||
ok = cover:stop(),
|
||||
ok = rebar_cover_utils:exit(),
|
||||
|
||||
true = code:set_path(CodePath),
|
||||
|
||||
|
|
Loading…
Reference in a new issue