summaryrefslogtreecommitdiff
path: root/tests/multi_net/asyncio_tls_server_client.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-01-03 16:26:52 +1100
committerDamien George <damien@micropython.org>2024-01-05 11:05:34 +1100
commitf0392b8d3d7e37a74f448c8fe4789f0f6bc76541 (patch)
treee98f92749bc2362e52fa90921957fbbc9c3c49a5 /tests/multi_net/asyncio_tls_server_client.py
parenta003ac2f73b8f54643e42138ad10249e2b861b63 (diff)
tests/run-multitests.py: Change to dir of test script when running it.
This matches the behaviour of run-tests.py, which sets cwd to the directory containing the test script, which helps to isolate the filesystem. It means that the SSL tests no longer need to know the name of their containing directory to find the certificate files, and helps to run these tests on bare-metal. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/multi_net/asyncio_tls_server_client.py')
-rw-r--r--tests/multi_net/asyncio_tls_server_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/multi_net/asyncio_tls_server_client.py b/tests/multi_net/asyncio_tls_server_client.py
index 996cdb3e0..59e13ec45 100644
--- a/tests/multi_net/asyncio_tls_server_client.py
+++ b/tests/multi_net/asyncio_tls_server_client.py
@@ -11,8 +11,8 @@ except ImportError:
PORT = 8000
# These are test certificates. See tests/README.md for details.
-cert = cafile = "multi_net/rsa_cert.der"
-key = "multi_net/rsa_key.der"
+cert = cafile = "rsa_cert.der"
+key = "rsa_key.der"
try:
os.stat(cafile)