aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorSiri Hansen <siri@erlang.org>2014-10-31 16:25:56 +0100
committerSiri Hansen <siri@erlang.org>2014-11-27 12:09:35 +0100
commit59e87972927c947353231d018217da696d03478c (patch)
tree529b1831fa743c91124d99b30011e5ed95820d28 /lib/common_test
parent9366932892711cc4cce7a54b1e098e6d5c3db468 (diff)
downloadotp-59e87972927c947353231d018217da696d03478c.tar.gz
otp-59e87972927c947353231d018217da696d03478c.tar.bz2
otp-59e87972927c947353231d018217da696d03478c.zip
[ct_telnet] Don't send extra newline after password
The telnet client used to send an extra newline after the password. This caused an extra prompt to be sent back from the server. Some test cases failed every now and then due to this - since the second promt was confusing. This is now corrected, i.e. the client does no longer send an extra newline after the password.
Diffstat (limited to 'lib/common_test')
-rw-r--r--lib/common_test/src/unix_telnet.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common_test/src/unix_telnet.erl b/lib/common_test/src/unix_telnet.erl
index 10666b979d..09b6fd1510 100644
--- a/lib/common_test/src/unix_telnet.erl
+++ b/lib/common_test/src/unix_telnet.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2004-2013. All Rights Reserved.
+%% Copyright Ericsson AB 2004-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -122,7 +122,7 @@ connect1(Name,Ip,Port,Timeout,KeepAlive,Username,Password) ->
ok = ct_telnet_client:send_data(Pid,Password),
Stars = lists:duplicate(length(Password),$*),
log(Name,send,"Password: ~s",[Stars]),
- ok = ct_telnet_client:send_data(Pid,""),
+% ok = ct_telnet_client:send_data(Pid,""),
case ct_telnet:silent_teln_expect(Name,Pid,[],
prompt,
?prx,[]) of