telnetd not restart immediately after xinetd restart, which make xinetd
failed. e.g.
\# service xinetd restart; echo "^D" | /usr/bin/telnet ::1
Stopping xinetd: [  OK  ]
Starting xinetd: [  OK  ]
Trying ::1...
telnet: connect to address ::1: Connection refused

Wait a while after xinetd restart will make sure telnetd up and the test passed

\# service xinetd restart; sleep 1; echo "^D" | /usr/bin/telnet ::1
Stopping xinetd: [  OK  ]
Starting xinetd: [  OK  ]
Trying ::1...
Connected to ::1.
Escape character is '^]'.
Connection closed by foreign host.

Signed-off-by: Hangbin Liu <liuhang...@gmail.com>
---
 testcases/network/xinetd/xinetd_tests.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testcases/network/xinetd/xinetd_tests.sh 
b/testcases/network/xinetd/xinetd_tests.sh
index ff1219a..a12f6b9 100755
--- a/testcases/network/xinetd/xinetd_tests.sh
+++ b/testcases/network/xinetd/xinetd_tests.sh
@@ -315,6 +315,8 @@ test01()
         fi
     fi
 
+    sleep 1s
+
     # Not checking for exit code from telnet command because telnet is
     # not terminated by the test gracefully.
     if [ $IPV6_ENABLED -eq 1 ]
@@ -381,6 +383,8 @@ test01()
         fi
     fi
 
+    sleep 1s
+
     # Not checking for exit code from telnet command because telnet is
     # not terminated by the test gracefully.
     if [ $IPV6_ENABLED -eq 1 ]
-- 
1.9.3


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to