Changeset 9a48691 in mod_gnutls
- Timestamp:
- Jan 8, 2020, 3:32:30 PM (15 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- baa0056
- Parents:
- dda0f4a
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/hooks.py
rdda0f4a r9a48691 21 21 prepare_env: 22 22 23 This hook runs before the test services are started. It can 24 set any additional environment variables the test might need. 23 This hook runs before the test services are started. It serves 24 two purposes: 25 26 1. Check special precondition the test might need 27 (e.g. availability of a certain Apache module), and raise 28 unittest.SkipTest to skip the test case if they are not met. 29 30 2. Set any additional environment variables the test might 31 need. 25 32 26 33 run_connection: -
test/runtest.py
rdda0f4a r9a48691 22 22 import sys 23 23 import tempfile 24 from unittest import SkipTest 24 25 25 26 import mgstest.hooks … … 131 132 132 133 # This hook may modify the environment as needed for the test. 133 if plugin.prepare_env: 134 plugin.prepare_env() 134 try: 135 if plugin.prepare_env: 136 plugin.prepare_env() 137 except SkipTest as skip: 138 print(f'Skipping: {skip!s}') 139 sys.exit(77) 135 140 136 141 # If VERBOSE is enabled, log the HTTPD build configuration
Note: See TracChangeset
for help on using the changeset viewer.