Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
baentsch committed Feb 17, 2024
1 parent 1317a09 commit 3daf7e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def start_server(ossl, test_artifacts_dir, sig_alg, worker_id):
time.sleep(5)
print("Server info available after %d attempts." %(server_start_attempt))
server_port = str(server_info.connections()[0].laddr.port)
print("Server running at port %d" % (server_port))
print("Server running at port %s" % (server_port))

# Check SERVER_START_ATTEMPTS times to see
# if the server is responsive.
Expand All @@ -108,6 +108,7 @@ def start_server(ossl, test_artifacts_dir, sig_alg, worker_id):
time.sleep(5)

if server_start_attempt > SERVER_START_ATTEMPTS:
print("Cannot connect after %d attempts" % (server_start_attempt))
raise Exception('Cannot start OpenSSL server')

print("Server running OK.")
Expand Down

0 comments on commit 3daf7e1

Please sign in to comment.