aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2013-04-22 16:31:01 +0200
committerPeter Andersson <[email protected]>2013-04-22 16:31:01 +0200
commit5e0617242fe313a6eb3ce57b71eb4a3855de2c66 (patch)
treed8edacbcaf24768a60b3240bbcd5f79ef20fcf5a /lib/common_test/src
parentc85ff9ae224088a86654b16cc868483819336ed1 (diff)
downloadotp-5e0617242fe313a6eb3ce57b71eb4a3855de2c66.tar.gz
otp-5e0617242fe313a6eb3ce57b71eb4a3855de2c66.tar.bz2
otp-5e0617242fe313a6eb3ce57b71eb4a3855de2c66.zip
Fix error with refreshing logs when html util files are missing
OTP-11046
Diffstat (limited to 'lib/common_test/src')
-rw-r--r--lib/common_test/src/ct_logs.erl12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_logs.erl b/lib/common_test/src/ct_logs.erl
index adea28e0fb..d557150a63 100644
--- a/lib/common_test/src/ct_logs.erl
+++ b/lib/common_test/src/ct_logs.erl
@@ -199,12 +199,19 @@ clear_stylesheet(TC) ->
%%%-----------------------------------------------------------------
%%% @spec get_log_dir() -> {ok,Dir} | {error,Reason}
get_log_dir() ->
- call({get_log_dir,false}).
+ get_log_dir(false).
%%%-----------------------------------------------------------------
%%% @spec get_log_dir(ReturnAbsName) -> {ok,Dir} | {error,Reason}
get_log_dir(ReturnAbsName) ->
- call({get_log_dir,ReturnAbsName}).
+ case call({get_log_dir,ReturnAbsName}) of
+ {error,does_not_exist} when ReturnAbsName == true ->
+ {ok,filename:absname(".")};
+ {error,does_not_exist} ->
+ {ok,"."};
+ Result ->
+ Result
+ end.
%%%-----------------------------------------------------------------
%%% make_last_run_index() -> ok
@@ -546,7 +553,6 @@ log_timestamp({MS,S,US}) ->
logger(Parent, Mode, Verbosity) ->
register(?MODULE,self()),
-
%%! Below is a temporary workaround for the limitation of
%%! max one test run per second.
%%! --->