diff options
author | Peter Andersson <[email protected]> | 2011-04-11 22:52:48 +0200 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2011-04-28 22:42:59 +0200 |
commit | 4e1b099698aac698f89ca172b62ba2330c85ad90 (patch) | |
tree | 422a59e9d92179452c5139b9c1799e3530a0a68f /lib/common_test/src/ct_run.erl | |
parent | 34208aa4201b169249c03a188afb5076dc4804a2 (diff) | |
download | otp-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_run.erl')
-rw-r--r-- | lib/common_test/src/ct_run.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/common_test/src/ct_run.erl b/lib/common_test/src/ct_run.erl index 52a81a5b46..c01e97b358 100644 --- a/lib/common_test/src/ct_run.erl +++ b/lib/common_test/src/ct_run.erl @@ -262,15 +262,15 @@ run_or_refresh(StartOpts = #opts{logdir = LogDir}, Args) -> %% give the shell time to print version etc timer:sleep(500), io:nl(), - case catch ct_logs:make_all_suites_index(refresh) of - {'EXIT',ASReason} -> + case catch ct_logs:make_all_runs_index(refresh) of + {'EXIT',ARReason} -> file:set_cwd(Cwd), - {error,{all_suites_index,ASReason}}; + {error,{all_runs_index,ARReason}}; _ -> - case catch ct_logs:make_all_runs_index(refresh) of - {'EXIT',ARReason} -> + case catch ct_logs:make_all_suites_index(refresh) of + {'EXIT',ASReason} -> file:set_cwd(Cwd), - {error,{all_runs_index,ARReason}}; + {error,{all_suites_index,ASReason}}; _ -> file:set_cwd(Cwd), io:format("Logs in ~s refreshed!~n~n", [LogDir1]), |