You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2018/03/12 17:55:09 UTC
[trafficserver] 07/08: Remove the use of netstat from ccid_ctid test
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 871650c5d86b681f9f676f41c8f84200b8f60300
Author: Jeffrey Bevill <je...@gmail.com>
AuthorDate: Wed Mar 7 19:24:03 2018 -0700
Remove the use of netstat from ccid_ctid test
---
tests/gold_tests/logging/ccid_ctid.test.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/tests/gold_tests/logging/ccid_ctid.test.py b/tests/gold_tests/logging/ccid_ctid.test.py
index ef60083..f5b4e20 100644
--- a/tests/gold_tests/logging/ccid_ctid.test.py
+++ b/tests/gold_tests/logging/ccid_ctid.test.py
@@ -69,14 +69,9 @@ log.ascii {
}'''.split("\n")
)
-# Ask the OS if the port is ready for connect()
-#
-def CheckPort(Port):
- return lambda: 0 == subprocess.call('netstat --listen --tcp -n | grep -q :{}'.format(Port), shell=True)
-
tr = Test.AddTestRun()
# Delay on readiness of ssl port
-tr.Processes.Default.StartBefore(Test.Processes.ts, ready=CheckPort(ts.Variables.ssl_port))
+tr.Processes.Default.StartBefore(Test.Processes.ts, ready=When.PortOpen(ts.Variables.ssl_port))
#
tr.Processes.Default.Command = 'curl "http://127.0.0.1:{0}" --verbose'.format(
ts.Variables.port)
--
To stop receiving notification emails like this one, please contact
zwoop@apache.org.