Changeset 0909c92 in mod_gnutls for test/runtest.py
- Timestamp:
- Dec 27, 2019, 12:40:51 PM (13 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 3039495
- Parents:
- 05984a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/runtest.py
r05984a0 r0909c92 22 22 import sys 23 23 24 import mgstest.hooks 24 25 from mgstest import lockfile, TestExpectationFailed 25 26 from mgstest.services import ApacheService, TestService … … 110 111 os.environ['TEST_NAME'] = testname 111 112 113 # Load test case hooks (if any) 114 plugin_path = os.path.join(testdir, 'hooks.py') 115 plugin = mgstest.hooks.load_hooks_plugin(plugin_path) 116 112 117 # PID file name varies depending on whether we're using 113 118 # namespaces. … … 187 192 # Run the test connections 188 193 with contextlib.ExitStack() as stack: 189 test_conf = stack.enter_context(190 open(os.path.join(testdir, 'test.yml'), 'r'))191 194 log_file = None 192 195 output_file = None … … 196 199 output_file = stack.enter_context(open(args.log_responses, 'w')) 197 200 198 run_test_conf(test_conf, 199 float(os.environ.get('TEST_QUERY_TIMEOUT', 5.0)), 200 conn_log=log_file, response_log=output_file) 201 if plugin.run_connection: 202 plugin.run_connection(testname, 203 conn_log=log_file, 204 response_log=output_file) 205 else: 206 test_conf = stack.enter_context( 207 open(os.path.join(testdir, 'test.yml'), 'r')) 208 run_test_conf(test_conf, 209 float(os.environ.get('TEST_QUERY_TIMEOUT', 5.0)), 210 conn_log=log_file, response_log=output_file) 201 211 202 212 # TODO: add hook to replace the test request, e.g. for curl
Note: See TracChangeset
for help on using the changeset viewer.