You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/06/01 22:42:07 UTC
[13/50] rebar commit: updated refs/heads/import to e9f62c4
Wrap cover:stop() call as rebar_cover_utils:exit/0
Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/1363ba30
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/1363ba30
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/1363ba30
Branch: refs/heads/import
Commit: 1363ba30381e3f40bddc134fc8415d6569a32ec3
Parents: 8fea315
Author: Tuncer Ayaz <tu...@gmail.com>
Authored: Sat Jun 14 18:25:38 2014 +0200
Committer: Tuncer Ayaz <tu...@gmail.com>
Committed: Sat Jun 14 19:23:45 2014 +0200
----------------------------------------------------------------------
src/rebar_cover_utils.erl | 6 +++++-
src/rebar_eunit.erl | 2 +-
src/rebar_qc.erl | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/1363ba30/src/rebar_cover_utils.erl
----------------------------------------------------------------------
diff --git a/src/rebar_cover_utils.erl b/src/rebar_cover_utils.erl
index a232867..3195fe2 100644
--- a/src/rebar_cover_utils.erl
+++ b/src/rebar_cover_utils.erl
@@ -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) ->
http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/1363ba30/src/rebar_eunit.erl
----------------------------------------------------------------------
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl
index faa6228..a5b7b00 100644
--- a/src/rebar_eunit.erl
+++ b/src/rebar_eunit.erl
@@ -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 ->
http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/1363ba30/src/rebar_qc.erl
----------------------------------------------------------------------
diff --git a/src/rebar_qc.erl b/src/rebar_qc.erl
index cd3d288..e08833b 100644
--- a/src/rebar_qc.erl
+++ b/src/rebar_qc.erl
@@ -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),