diff options
author | Micael Karlberg <[email protected]> | 2019-07-10 17:15:16 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-07-17 11:47:44 +0200 |
commit | 4f377cd09e0e313bc2fe03c003db7f652934c618 (patch) | |
tree | fdb93e8b73aff9da1df6cedbac70ba89ff1c876d /lib/megaco/test/megaco_test_lib.erl | |
parent | 4e9792256a754ff10f6a214f582fbb58e081deb2 (diff) | |
download | otp-4f377cd09e0e313bc2fe03c003db7f652934c618.tar.gz otp-4f377cd09e0e313bc2fe03c003db7f652934c618.tar.bz2 otp-4f377cd09e0e313bc2fe03c003db7f652934c618.zip |
[megaco|test] Make the mib test suite more verbose
Make the mib (sub-) test suite more verbose and also
do some printout when starting slave nodes (to see
just how long time it takes).
The connect test case failed on one (possibly) slow
host during what looked lite mgc start (timeout). But
since there where no printouts during that phase, there
is no way to know what was going on.
Diffstat (limited to 'lib/megaco/test/megaco_test_lib.erl')
-rw-r--r-- | lib/megaco/test/megaco_test_lib.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/megaco/test/megaco_test_lib.erl b/lib/megaco/test/megaco_test_lib.erl index 0617b96456..7bb1737f4c 100644 --- a/lib/megaco/test/megaco_test_lib.erl +++ b/lib/megaco/test/megaco_test_lib.erl @@ -988,11 +988,14 @@ node_to_name_and_host(Node) -> start_nodes([Node | Nodes], File, Line) -> case net_adm:ping(Node) of pong -> + p("node ~p already running", [Node]), start_nodes(Nodes, File, Line); pang -> [Name, Host] = node_to_name_and_host(Node), + p("try start node ~p", [Node]), case slave:start_link(Host, Name) of {ok, NewNode} when NewNode =:= Node -> + p("node ~p started - now set path, cwd and sync", [Node]), Path = code:get_path(), {ok, Cwd} = file:get_cwd(), true = rpc:call(Node, code, set_path, [Path]), @@ -1001,6 +1004,7 @@ start_nodes([Node | Nodes], File, Line) -> {_, []} = rpc:multicall(global, sync, []), start_nodes(Nodes, File, Line); Other -> + p("failed starting node ~p: ~p", [Node, Other]), fatal_skip({cannot_start_node, Node, Other}, File, Line) end end; @@ -1014,4 +1018,4 @@ f(F, A) -> lists:flatten(io_lib:format(F, A)). p(F, A) -> - io:format("~p~w:" ++ F ++ "~n", [self(), ?MODULE |A]). + io:format("~s ~p " ++ F ++ "~n", [?FTS(), self() | A]). |