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>
This commit is contained in:
@@ -11,8 +11,8 @@ except ImportError:
|
||||
PORT = 8000
|
||||
|
||||
# These are test certificates. See tests/README.md for details.
|
||||
cert = cafile = "multi_net/expired_cert.der"
|
||||
key = "multi_net/rsa_key.der"
|
||||
cert = cafile = "expired_cert.der"
|
||||
key = "rsa_key.der"
|
||||
|
||||
try:
|
||||
os.stat(cafile)
|
||||
|
||||
Reference in New Issue
Block a user