diff options
author | Andrey Pampukha <[email protected]> | 2010-03-12 11:55:55 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-06-09 16:19:12 +0200 |
commit | 9ad66edc389b04141443bc5339c9f34dfeac59f0 (patch) | |
tree | ee938dfde0ee08eb595c6aa56e47ddb83b247ece /lib | |
parent | 6d2e8af337b046dcb4d569c18af3bfb597d7c0bf (diff) | |
download | otp-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.erl | 7 |
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. |