Changeset 72ebe64 in mod_gnutls for test/mgstest
- Timestamp:
- Jan 26, 2020, 12:56:53 PM (13 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- e2200db
- Parents:
- f042405
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/services.py
rf042405 r72ebe64 162 162 apache2 = os.environ.get('APACHE2', 'apache2') 163 163 164 def __init__(self, config, env=None, pidfile=None, check=None): 164 def __init__(self, config, env=None, pidfile=None, check=None, 165 valgrind_log=None): 165 166 self.config = Path(config).resolve() 167 self.forking = True 166 168 base_cmd = [self.apache2, '-f', str(self.config), '-k'] 169 start_cmd = base_cmd + ['start'] 170 stop_cmd = base_cmd + ['stop'] 171 if valgrind_log: 172 start_cmd = ['valgrind', '-s', '--leak-check=full', 173 '--track-origins=yes', '--vgdb=no', 174 f'--log-file={valgrind_log}'] \ 175 + start_cmd + ['-DFOREGROUND'] 176 self.forking = False 167 177 if not check: 168 178 check = self.pidfile_check 169 super(ApacheService, self).__init__(start= base_cmd + ['start'],170 stop= base_cmd + ['stop'],171 forking= True,179 super(ApacheService, self).__init__(start=start_cmd, 180 stop=stop_cmd, 181 forking=self.forking, 172 182 env=env, 173 183 pidfile=pidfile,
Note: See TracChangeset
for help on using the changeset viewer.