Skip to content

Commit

Permalink
Merge branch 'lukas/common_test/extend_timeout_for_win' into dev
Browse files Browse the repository at this point in the history
* lukas/common_test/extend_timeout_for_win:
  Update the support init_per_suite to extend the timeout for starting a slave node on windows.
  • Loading branch information
garazdawi committed Dec 3, 2010
2 parents 74ec125 + 5bc0e21 commit 52b0fbb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/common_test/test/ct_test_support.erl
Expand Up @@ -43,6 +43,14 @@ init_per_suite(Config) ->
init_per_suite(Config, 50).

init_per_suite(Config, Level) ->
case os:type() of
{win32, _} ->
%% Extend timeout for windows as starting node
%% can take a long time there
test_server:timetrap( 120000 * test_server:timetrap_scale_factor());
_ ->
ok
end,
case delete_old_logs(os:type(), Config) of
{'EXIT',DelLogsReason} ->
test_server:format(0, "Failed to delete old log directories: ~p~n",
Expand All @@ -51,6 +59,8 @@ init_per_suite(Config, Level) ->
ok
end,
[_,Host] = string:tokens(atom_to_list(node()), "@"),

test_server:format(0, "Trying to start ~s~n", ["ct@"++Host]),
case slave:start(Host, ct, []) of
{error,Reason} ->
test_server:fail(Reason);
Expand Down

0 comments on commit 52b0fbb

Please sign in to comment.