diff options
author | Siri Hansen <[email protected]> | 2012-10-24 18:48:11 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2012-10-30 11:19:00 +0100 |
commit | fe9ed2938a02869b1df9554b32e4c4c453e6995c (patch) | |
tree | 603b813298853232124574050f54a5730a01d455 /lib/test_server/src | |
parent | b6fe934ea73f8eeaaa70b786f53ee6e8f2a52d2c (diff) | |
download | otp-fe9ed2938a02869b1df9554b32e4c4c453e6995c.tar.gz otp-fe9ed2938a02869b1df9554b32e4c4c453e6995c.tar.bz2 otp-fe9ed2938a02869b1df9554b32e4c4c453e6995c.zip |
[test_server] Add option {start_cover,false} to test_server:start_node
By default the test server will start cover on all nodes when the test
is run with code coverage analysis. To make sure cover is not started
on a new node, this option can be set.
This can be useful if the test itself starts cover or if the new node
for some reason can not run cover compiled code.
Diffstat (limited to 'lib/test_server/src')
-rw-r--r-- | lib/test_server/src/test_server.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/test_server/src/test_server.erl b/lib/test_server/src/test_server.erl index 2b15d07990..b900c88db4 100644 --- a/lib/test_server/src/test_server.erl +++ b/lib/test_server/src/test_server.erl @@ -2597,7 +2597,10 @@ start_node(Name, Type, Options) -> %% by a shielded node. Cover = case is_cover() of true -> - not is_shielded(Name) andalso same_version(Node); + not is_shielded(Name) + andalso same_version(Node) + andalso proplists:get_value(start_cover,Options, + true); false -> false end, |