aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_telnet_client.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-05-21 17:50:09 +0200
committerSiri Hansen <[email protected]>2013-05-21 17:50:09 +0200
commit2886d9937990c3465671b59d744f6bacd43545c8 (patch)
treebf4a5b8e4cf45de31809eb63b60a7b559c1ed164 /lib/common_test/src/ct_telnet_client.erl
parente0e9885cd3561c46114ee22ac84c01d9347187ea (diff)
parentcae4bc87c2b3009a505f91a1c2d38a484cc9a1e4 (diff)
downloadotp-2886d9937990c3465671b59d744f6bacd43545c8.tar.gz
otp-2886d9937990c3465671b59d744f6bacd43545c8.tar.bz2
otp-2886d9937990c3465671b59d744f6bacd43545c8.zip
Merge branch 'siri/ct/no_prompt_check/OTP-11095' into maint
* siri/ct/no_prompt_check/OTP-11095: [common_test] Refactor ct_telnet_SUITE.erl [common_test] Add new option 'no_prompt_check' to ct_telnet:expect/3. [common_test] Add debug printouts in ct_telnet_client [common_test] Backed out wait_for_linebreak option from ct_telnet [common_test] Add test for ct_telnet using own telnet server [common_test] Add telnet server to use for testing
Diffstat (limited to 'lib/common_test/src/ct_telnet_client.erl')
-rw-r--r--lib/common_test/src/ct_telnet_client.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_telnet_client.erl b/lib/common_test/src/ct_telnet_client.erl
index 7329498ed6..2cbcba9c77 100644
--- a/lib/common_test/src/ct_telnet_client.erl
+++ b/lib/common_test/src/ct_telnet_client.erl
@@ -143,7 +143,9 @@ loop(State, Sock, Acc) ->
State
end;
_ ->
- Pid ! {data,lists:reverse(lists:append(Acc))},
+ Data = lists:reverse(lists:append(Acc)),
+ dbg("get_data ~p\n",[Data]),
+ Pid ! {data,Data},
State
end,
loop(NewState, Sock, []);
@@ -161,7 +163,9 @@ loop(State, Sock, Acc) ->
NewAcc =
case erlang:is_process_alive(Pid) of
true ->
- Pid ! {data,lists:reverse(lists:append(Acc))},
+ Data = lists:reverse(lists:append(Acc)),
+ dbg("get_data_delayed ~p\n",[Data]),
+ Pid ! {data,Data},
[];
false ->
Acc