Changeset ad2690b in mod_gnutls
- Timestamp:
- Oct 8, 2020, 2:20:33 PM (6 months ago)
- Branches:
- asyncio
- Children:
- c26a163
- Parents:
- 9eda494
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/runtest.py
r9eda494 rad2690b 30 30 from mgstest.services import ApacheService, TestService 31 31 from mgstest.tests import run_test_conf 32 33 32 34 33 … … 53 52 else: 54 53 found = entry 55 if found ==None:54 if found is None: 56 55 raise LookupError('No test directory found for test number ' 57 56 f'{number}!') … … 59 58 return (found.path, found.name) 60 59 60 61 61 def temp_logfile(): 62 62 return tempfile.SpooledTemporaryFile(max_size=4096, mode='w+', 63 63 prefix='mod_gnutls', suffix=".log") 64 65 66 64 67 65 … … 74 72 '--load-cert', check_cert] 75 73 return subprocess.run(command).returncode == 0 74 76 75 77 76 def check_msva(): … … 84 83 with open(cert_file, 'r') as cert: 85 84 return subprocess.run(command, stdin=cert).returncode == 0 86 87 85 88 86 … … 166 164 if cleanup_callback: 167 165 service_stack.callback(cleanup_callback) 168 service_stack.enter_context(lockfile('test.lock', nolock='MGS_NETNS_ACTIVE' in os.environ)) 166 service_stack.enter_context( 167 lockfile('test.lock', nolock='MGS_NETNS_ACTIVE' in os.environ)) 169 168 service_stack.enter_context(ocsp.run()) 170 169 service_stack.enter_context(backend.run()) … … 221 220 if errors[0] > 0: 222 221 sys.exit(ord('V')) 223 224 222 225 223
Note: See TracChangeset
for help on using the changeset viewer.