From 34208aa4201b169249c03a188afb5076dc4804a2 Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Fri, 8 Apr 2011 16:26:39 +0200 Subject: Fix problem with CT hook start error causing IO to be sent to wrong group leader process. --- lib/common_test/test/ct_test_support.erl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/common_test/test') diff --git a/lib/common_test/test/ct_test_support.erl b/lib/common_test/test/ct_test_support.erl index de95f05004..bb142696fa 100644 --- a/lib/common_test/test/ct_test_support.erl +++ b/lib/common_test/test/ct_test_support.erl @@ -226,6 +226,16 @@ run(Opts, Config) -> [Opts, CTNode]), Result1 = rpc:call(CTNode, ct, run_test, [Opts]), + case rpc:call(CTNode, erlang, whereis, [ct_util_server]) of + undefined -> + ok; + _ -> + test_server:format(Level, + "ct_util_server not stopped on ~p yet, waiting 5 s...~n", + [CTNode]), + timer:sleep(5000), + undefined = rpc:call(CTNode, erlang, whereis, [ct_util_server]) + end, %% use run_test interface (simulated) test_server:format(Level, "Saving start opts on ~p: ~p~n", [CTNode,Opts]), rpc:call(CTNode, application, set_env, [common_test, run_test_start_opts, Opts]), -- cgit v1.2.3