From aaef3236c654442d9c6cd7d49483a80768c6a5f8 Mon Sep 17 00:00:00 2001 From: Igor Abdrakhimov Date: Fri, 6 Dec 2024 11:38:29 -0800 Subject: [PATCH] debugging --- .builder/actions/tls_server_setup.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.builder/actions/tls_server_setup.py b/.builder/actions/tls_server_setup.py index 7780f633a..d7b9f7b52 100644 --- a/.builder/actions/tls_server_setup.py +++ b/.builder/actions/tls_server_setup.py @@ -55,18 +55,18 @@ def run(self, env): for c in iter(lambda: p1.stderr.read(1), b""): sys.stdout.buffer.write(c) - # p = subprocess.Popen(["openssl.exe", "s_server", - # "-accept", "localhost:59443", - # "-key", "tls13.key", - # "-cert", "tls13.pem.crt", - # "-chainCAfile", "tls13_root_ca.pem.crt", - # "-alpn", "x-amzn-mqtt-ca", - # "-debug", "-state", - # ], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - - python_path = sys.executable - p = subprocess.Popen([python_path, "../../.builder/actions/main.py", - ], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + p = subprocess.Popen(["openssl.exe", "s_server", + "-accept", "localhost:59443", + "-key", "tests/resources/tls13.key", + "-cert", "tls13.pem.crt", + "-chainCAfile", "tls13_root_ca.pem.crt", + "-alpn", "x-amzn-mqtt-ca", + "-debug", "-state", + ], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + + # python_path = sys.executable + # p = subprocess.Popen([python_path, "../../.builder/actions/main.py", + # ], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) time.sleep(1) p.poll() print("Return code is {}".format(p.returncode))