diff options
author | Rickard Green <rickard@erlang.org> | 2022-02-23 08:20:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 08:20:42 +0100 |
commit | 6edca818a8893d0475f5a940e74fdc002011f030 (patch) | |
tree | c475d3d7d9e1c5f587a14bdc6c06ad533716edb1 /lib/common_test | |
parent | b7e4ff920a977ea994e29d5f8b60eb8e93a7794b (diff) | |
parent | ccc3ee8cb0221c302eeed4fad2effc8271ce132d (diff) | |
download | erlang-6edca818a8893d0475f5a940e74fdc002011f030.tar.gz |
Merge pull request #5566 from max-au/max-au/peerify-tools
[tools] replace test_server:start_node with ?CT_PEER()
Diffstat (limited to 'lib/common_test')
-rw-r--r-- | lib/common_test/src/test_server.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/common_test/src/test_server.erl b/lib/common_test/src/test_server.erl index 3328074160..0f90f502c2 100644 --- a/lib/common_test/src/test_server.erl +++ b/lib/common_test/src/test_server.erl @@ -2834,7 +2834,9 @@ start_peer(#{name := Name} = Opts, Module) -> end, FullArgs = CookieArg ++ ["-pa", filename:dirname(code:which(Module)), "-env", "ERL_CRASH_DUMP", CrashFile] ++ Args, - case test_server:is_cover() of + %% start_cover => false is intentionally undocumented, and is not + %% expected to be used by anything but cover_SUITE test. + case maps:get(start_cover, Opts, true) andalso test_server:is_cover() of true -> %% when cover is active, node must shut down gracefully, otherwise %% coverage information won't be sent to cover master |