aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_run.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-02-11 13:37:43 +0100
committerBjörn Gustavsson <[email protected]>2019-02-11 14:56:27 +0100
commitf2b6259a43dca0eafa4813c5cf63186d3dba3a0e (patch)
tree5943836d7f2a99fee09de43538c944f903e87ede /lib/common_test/src/ct_run.erl
parente6bdde9e927ad0933aaf36120cc740e2380567dc (diff)
downloadotp-f2b6259a43dca0eafa4813c5cf63186d3dba3a0e.tar.gz
otp-f2b6259a43dca0eafa4813c5cf63186d3dba3a0e.tar.bz2
otp-f2b6259a43dca0eafa4813c5cf63186d3dba3a0e.zip
common_test: Add support for running cover:local_only/0
Diffstat (limited to 'lib/common_test/src/ct_run.erl')
-rw-r--r--lib/common_test/src/ct_run.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_run.erl b/lib/common_test/src/ct_run.erl
index c9d406f1fd..960252a6fe 100644
--- a/lib/common_test/src/ct_run.erl
+++ b/lib/common_test/src/ct_run.erl
@@ -2345,18 +2345,24 @@ start_cover(Opts=#opts{coverspec=CovData,cover_stop=CovStop},LogDir) ->
CovImport,
_CovExport,
#cover{app = CovApp,
+ local_only = LocalOnly,
level = CovLevel,
excl_mods = CovExcl,
incl_mods = CovIncl,
cross = CovCross,
src = _CovSrc}} = CovData,
+ case LocalOnly of
+ true -> cover:local_only();
+ false -> ok
+ end,
ct_logs:log("COVER INFO",
"Using cover specification file: ~ts~n"
"App: ~w~n"
+ "Local only: ~w~n"
"Cross cover: ~w~n"
"Including ~w modules~n"
"Excluding ~w modules",
- [CovFile,CovApp,CovCross,
+ [CovFile,CovApp,LocalOnly,CovCross,
length(CovIncl),length(CovExcl)]),
%% Tell test_server to print a link in its coverlog