From 201fcfadc87e21b0b10ecf3a2a9d114328a65ffb Mon Sep 17 00:00:00 2001 From: jahoti Date: Fri, 3 Dec 2021 00:00:00 +0000 Subject: Support tests outside the source directory Explicitly use certs in the build directory, and tests in the source --- test/misc_constants.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/misc_constants.py b/test/misc_constants.py index 3494293..add875d 100644 --- a/test/misc_constants.py +++ b/test/misc_constants.py @@ -43,7 +43,7 @@ default_cert_dir = here / 'certs' # Use user-specified values instead where available try: - with open(str(here.parent / 'testing.conf')) as f: + with open('testing.conf') as f: option = f.readline() while ' ' in option: key, value = option[:-1].split(' ', maxsplit=1) @@ -56,6 +56,9 @@ try: elif key == 'TEST_PORT': default_proxy_port = int(value) + elif key == 'CERT_DIR': + default_cert_dir = Path(value) + else: raise KeyError(key) -- cgit v1.2.3