aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_framework.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2011-04-11 22:52:48 +0200
committerPeter Andersson <[email protected]>2011-04-28 22:42:59 +0200
commit4e1b099698aac698f89ca172b62ba2330c85ad90 (patch)
tree422a59e9d92179452c5139b9c1799e3530a0a68f /lib/common_test/src/ct_framework.erl
parent34208aa4201b169249c03a188afb5076dc4804a2 (diff)
downloadotp-4e1b099698aac698f89ca172b62ba2330c85ad90.tar.gz
otp-4e1b099698aac698f89ca172b62ba2330c85ad90.tar.bz2
otp-4e1b099698aac698f89ca172b62ba2330c85ad90.zip
Make it possible to refresh the top level index page at the start of a test run.
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r--lib/common_test/src/ct_framework.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl
index 8fd4fd6339..af71d1f69b 100644
--- a/lib/common_test/src/ct_framework.erl
+++ b/lib/common_test/src/ct_framework.erl
@@ -1187,6 +1187,13 @@ ct_end_per_group(GroupName, _) ->
%%% @spec report(What,Data) -> ok
report(What,Data) ->
case What of
+ loginfo ->
+ %% logfiles and direcories have been created for a test and the
+ %% top level test index page needs to be refreshed
+ TestName = filename:basename(proplists:get_value(topdir, Data), ".logs"),
+ RunDir = proplists:get_value(rundir, Data),
+ ct_logs:make_all_suites_index({TestName,RunDir}),
+ ok;
tests_start ->
case ct_util:get_testdata(cover) of
undefined ->