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 2020/03/24 21:12:42 UTC
[trafficserver] branch 9.0.x updated: Fixes some tls autests on
macOS
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 57ac8d4 Fixes some tls autests on macOS
57ac8d4 is described below
commit 57ac8d4f212e2ef9745c1da91dc2938f1bc7ee0c
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Mon Mar 23 12:51:05 2020 -0700
Fixes some tls autests on macOS
on macOS, wc precedes output with spaces
(cherry picked from commit 290fe4bff10b04eb9d3cdeabd13ee9789e84a6d6)
---
tests/gold_tests/tls/tls_client_cert.test.py | 2 +-
tests/gold_tests/tls/tls_tunnel.test.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/gold_tests/tls/tls_client_cert.test.py b/tests/gold_tests/tls/tls_client_cert.test.py
index 6732c45..89a1f9b 100644
--- a/tests/gold_tests/tls/tls_client_cert.test.py
+++ b/tests/gold_tests/tls/tls_client_cert.test.py
@@ -175,7 +175,7 @@ tr2.Processes.Default.ReturnCode = 0
# At that point the new sni settings are ready to go
def sni_reload_done(tsenv):
def done_reload(process, hasRunFor, **kw):
- cmd = "grep 'sni.yaml finished loading' {0} | wc -l > {1}/test.out".format(ts.Disk.diags_log.Name, Test.RunDirectory)
+ cmd = "grep 'sni.yaml finished loading' {0} | wc -l | sed -e 's/ //g'> {1}/test.out".format(ts.Disk.diags_log.Name, Test.RunDirectory)
retval = subprocess.run(cmd, shell=True, env=tsenv)
if retval.returncode == 0:
cmd ="if [ -f {0}/test.out -a \"`cat {0}/test.out`\" = \"2\" ] ; then true; else false; fi".format(Test.RunDirectory)
diff --git a/tests/gold_tests/tls/tls_tunnel.test.py b/tests/gold_tests/tls/tls_tunnel.test.py
index 0a7196f..3811a9b 100644
--- a/tests/gold_tests/tls/tls_tunnel.test.py
+++ b/tests/gold_tests/tls/tls_tunnel.test.py
@@ -152,7 +152,7 @@ trreload.Processes.Default.ReturnCode = 0
# At that point the new sni settings are ready to go
def sni_reload_done(tsenv):
def done_reload(process, hasRunFor, **kw):
- cmd = "grep 'sni.yaml finished loading' {0} | wc -l > {1}/test.out".format(ts.Disk.diags_log.Name, Test.RunDirectory)
+ cmd = "grep 'sni.yaml finished loading' {0} | wc -l | sed -e 's/ //g' > {1}/test.out".format(ts.Disk.diags_log.Name, Test.RunDirectory)
retval = subprocess.run(cmd, shell=True, env=tsenv)
if retval.returncode == 0:
cmd ="if [ -f {0}/test.out -a \"`cat {0}/test.out`\" = \"2\" ] ; then true; else false; fi".format(Test.RunDirectory)