aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/scripts/test_cli.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/scripts/test_cli.py b/src/scripts/test_cli.py
index 63b43a0f3..350d207a2 100755
--- a/src/scripts/test_cli.py
+++ b/src/scripts/test_cli.py
@@ -312,10 +312,9 @@ def cli_tls_socket_tests():
tmp_dir = tempfile.mkdtemp(prefix='botan_cli')
client_msg = b'Client message %d\n' % (random.randint(0, 2**128))
- server_port = random.randint(1024,65535)
+ server_port = random.randint(1024, 65535)
priv_key = os.path.join(tmp_dir, 'priv.pem')
- pub_key = os.path.join(tmp_dir, 'pub.pem')
ca_cert = os.path.join(tmp_dir, 'ca.crt')
crt_req = os.path.join(tmp_dir, 'crt.req')
server_cert = os.path.join(tmp_dir, 'server.crt')
@@ -338,7 +337,8 @@ def cli_tls_socket_tests():
time.sleep(.5)
- tls_client = subprocess.Popen([CLI_PATH, 'tls_client', 'localhost', '--port=%d' % (server_port), '--trusted-cas=%s' % (ca_cert)],
+ tls_client = subprocess.Popen([CLI_PATH, 'tls_client', 'localhost',
+ '--port=%d' % (server_port), '--trusted-cas=%s' % (ca_cert)],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
time.sleep(.5)
@@ -350,12 +350,9 @@ def cli_tls_socket_tests():
(stdout, stderr) = tls_client.communicate()
- if len(stderr) != 0:
+ if len(stderr) != 0: # pylint: disable=len-as-condition
logging.error("Got unexpected stderr output %s" % (stderr))
- if b'Certificate validation status: Verified' not in stdout:
- logging.error('Failed to verify cert: %s' % (stdout))
-
if b'Handshake complete' not in stdout:
logging.error('Failed to complete handshake: %s' % (stdout))