aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-06-28 16:50:33 -0400
committerJack Lloyd <[email protected]>2018-06-28 16:50:33 -0400
commitccd8c7844402932f8520182e2a16edfcf869bab4 (patch)
tree244e80267497f8ed42f04e7742f6609b69b236d3 /src/scripts
parent61273b884af9ee23d034aeef939ad69326205307 (diff)
Add --max-clients= option to tls_server CLI
Killing the process seems to result in the coverage info being lost. I think because gcov writes during an exit handler which ends up not running if we SIGTERM
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/test_cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/test_cli.py b/src/scripts/test_cli.py
index 350d207a2..df7670417 100755
--- a/src/scripts/test_cli.py
+++ b/src/scripts/test_cli.py
@@ -332,7 +332,7 @@ def cli_tls_socket_tests():
test_cli("sign_cert", "%s %s %s --output=%s" % (ca_cert, priv_key, crt_req, server_cert))
- tls_server = subprocess.Popen([CLI_PATH, 'tls_server', '--port=%d' % (server_port), server_cert, priv_key],
+ tls_server = subprocess.Popen([CLI_PATH, 'tls_server', '--max-clients=1', '--port=%d' % (server_port), server_cert, priv_key],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
time.sleep(.5)
@@ -359,7 +359,7 @@ def cli_tls_socket_tests():
if client_msg not in stdout:
logging.error("Missing client message from stdout %s" % (stdout))
- tls_server.terminate()
+ tls_server.communicate()
def cli_speed_tests():