Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Dec 6, 2024
1 parent 6950ac5 commit aaef323
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .builder/actions/tls_server_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit aaef323

Please sign in to comment.