aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrey Pampukha <[email protected]>2010-03-12 11:55:55 +0100
committerRaimo Niskanen <[email protected]>2010-06-09 16:19:12 +0200
commit9ad66edc389b04141443bc5339c9f34dfeac59f0 (patch)
treeee938dfde0ee08eb595c6aa56e47ddb83b247ece /lib
parent6d2e8af337b046dcb4d569c18af3bfb597d7c0bf (diff)
downloadotp-9ad66edc389b04141443bc5339c9f34dfeac59f0.tar.gz
otp-9ad66edc389b04141443bc5339c9f34dfeac59f0.tar.bz2
otp-9ad66edc389b04141443bc5339c9f34dfeac59f0.zip
Support running cover on common_test test suites
Diffstat (limited to 'lib')
-rw-r--r--lib/common_test/test/ct_test_support.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/common_test/test/ct_test_support.erl b/lib/common_test/test/ct_test_support.erl
index 6148e3280e..4aa750c37f 100644
--- a/lib/common_test/test/ct_test_support.erl
+++ b/lib/common_test/test/ct_test_support.erl
@@ -55,6 +55,12 @@ init_per_suite(Config, Level) ->
test_server:fail(Reason);
{ok,CTNode} ->
test_server:format(0, "Node ~p started~n", [CTNode]),
+ IsCover = test_server:is_cover(),
+ if IsCover ->
+ cover:start(CTNode);
+ true->
+ ok
+ end,
DataDir = ?config(data_dir, Config),
PrivDir = ?config(priv_dir, Config),
@@ -87,6 +93,7 @@ end_per_suite(Config) ->
CTNode = ?config(ct_node, Config),
PrivDir = ?config(priv_dir, Config),
true = rpc:call(CTNode, code, del_path, [filename:join(PrivDir,"")]),
+ cover:stop(CTNode),
slave:stop(CTNode),
ok.