mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
tests/multi_net: Require SSL cert file to be available for test to run.
These were missed in 2bba507148 because they
didn't use the `os.stat` pattern.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -14,14 +14,10 @@ PORT = 8000
|
||||
certfile = "ec_cert.der"
|
||||
keyfile = "ec_key.der"
|
||||
|
||||
try:
|
||||
with open(certfile, "rb") as cf:
|
||||
cert = cadata = cf.read()
|
||||
with open(keyfile, "rb") as kf:
|
||||
key = kf.read()
|
||||
except OSError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
with open(certfile, "rb") as cf:
|
||||
cert = cadata = cf.read()
|
||||
with open(keyfile, "rb") as kf:
|
||||
key = kf.read()
|
||||
|
||||
|
||||
# Server
|
||||
|
||||
@@ -14,14 +14,10 @@ PORT = 8000
|
||||
cert = cafile = "ec_cert.der"
|
||||
key = "ec_key.der"
|
||||
|
||||
try:
|
||||
with open(cafile, "rb") as f:
|
||||
cadata = f.read()
|
||||
with open(key, "rb") as f:
|
||||
keydata = f.read()
|
||||
except OSError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
with open(cafile, "rb") as f:
|
||||
cadata = f.read()
|
||||
with open(key, "rb") as f:
|
||||
keydata = f.read()
|
||||
|
||||
|
||||
# Server
|
||||
|
||||
@@ -15,14 +15,10 @@ PORT = 8000
|
||||
cert = cafile = "ec_cert.der"
|
||||
key = "ec_key.der"
|
||||
|
||||
try:
|
||||
with open(cafile, "rb") as f:
|
||||
cadata = f.read()
|
||||
with open(key, "rb") as f:
|
||||
key = f.read()
|
||||
except OSError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
with open(cafile, "rb") as f:
|
||||
cadata = f.read()
|
||||
with open(key, "rb") as f:
|
||||
key = f.read()
|
||||
|
||||
|
||||
def verify_callback(cert, depth):
|
||||
|
||||
@@ -13,14 +13,10 @@ PORT = 8000
|
||||
certfile = "ec_cert.der"
|
||||
keyfile = "ec_key.der"
|
||||
|
||||
try:
|
||||
with open(certfile, "rb") as cf:
|
||||
cert = cadata = cf.read()
|
||||
with open(keyfile, "rb") as kf:
|
||||
key = kf.read()
|
||||
except OSError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
with open(certfile, "rb") as cf:
|
||||
cert = cadata = cf.read()
|
||||
with open(keyfile, "rb") as kf:
|
||||
key = kf.read()
|
||||
|
||||
|
||||
# DTLS server.
|
||||
|
||||
Reference in New Issue
Block a user