summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralisdair sullivan <alisdairsullivan@yahoo.ca>2015-11-05 00:38:06 -0800
committeralisdair sullivan <alisdairsullivan@yahoo.ca>2015-11-05 00:38:06 -0800
commit0461729fd923f01796510f93f03ad6c848e6c73e (patch)
tree9280351bdaf28182eb97a4b51ecb928f24c3cc6f /src
parentf02ec399850ca40c75d66ff690c6edf005189c9a (diff)
calculate coverage info as late as possible in ct provider execution
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_common_test.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl
index 7a088e5..977a5f6 100644
--- a/src/rebar_prv_common_test.erl
+++ b/src/rebar_prv_common_test.erl
@@ -77,11 +77,12 @@ run_tests(State, Opts) ->
Opts2 = turn_off_auto_compile(Opts1),
?DEBUG("ct_opts ~p", [Opts2]),
{RawOpts, _} = rebar_state:command_parsed_args(State),
- ok = maybe_write_coverdata(State),
- case proplists:get_value(verbose, RawOpts, false) of
+ Result = case proplists:get_value(verbose, RawOpts, false) of
true -> run_test_verbose(Opts2);
false -> run_test_quiet(Opts2)
- end.
+ end,
+ ok = maybe_write_coverdata(State),
+ Result.
-spec format_error(any()) -> iolist().
format_error({error, Reason}) ->