couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [13/50] rebar commit: updated refs/heads/import to e9f62c4
Date Mon, 01 Jun 2015 20:42:07 GMT
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 <tuncer.ayaz@gmail.com>
Authored: Sat Jun 14 18:25:38 2014 +0200
Committer: Tuncer Ayaz <tuncer.ayaz@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),
 


Mime
View raw message