aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test/ct_test_support.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-10-12 16:34:42 +0200
committerSiri Hansen <[email protected]>2012-10-30 11:18:40 +0100
commit76795e21ef68e2af29d22deee09a729a14f8a29a (patch)
treeb9e445d69092c8fbeba40a7d0f187b0c34daf27d /lib/common_test/test/ct_test_support.erl
parentdeaae761fb03ba2a49ac6ed2459acf577698d57d (diff)
downloadotp-76795e21ef68e2af29d22deee09a729a14f8a29a.tar.gz
otp-76795e21ef68e2af29d22deee09a729a14f8a29a.tar.bz2
otp-76795e21ef68e2af29d22deee09a729a14f8a29a.zip
[common_test] Don't stop cover before stopping slave node
In order to avoid crash of processes that hold old code, cover is no longer stopped before slave nodes are stopped. Instead cover:flush is used which only fetches cover data from the slave. This, along with similar changes in test_server allows all common_test modules to be included in cover analysis.
Diffstat (limited to 'lib/common_test/test/ct_test_support.erl')
-rw-r--r--lib/common_test/test/ct_test_support.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/test/ct_test_support.erl b/lib/common_test/test/ct_test_support.erl
index 80cca4a1cc..c05b6d87c0 100644
--- a/lib/common_test/test/ct_test_support.erl
+++ b/lib/common_test/test/ct_test_support.erl
@@ -117,7 +117,7 @@ end_per_suite(Config) ->
CTNode = proplists:get_value(ct_node, Config),
PrivDir = proplists:get_value(priv_dir, Config),
true = rpc:call(CTNode, code, del_path, [filename:join(PrivDir,"")]),
- cover:stop(CTNode),
+ cover:flush(CTNode),
slave:stop(CTNode),
ok.
@@ -149,7 +149,7 @@ end_per_testcase(_TestCase, Config) ->
case wait_for_ct_stop(CTNode) of
%% Common test was not stopped to we restart node.
false ->
- cover:stop(CTNode),
+ cover:flush(CTNode),
slave:stop(CTNode),
start_slave(Config,proplists:get_value(trace_level,Config)),
{fail, "Could not stop common_test"};