Changeset 7e10018 in mod_gnutls


Ignore:
Timestamp:
Jan 9, 2020, 9:49:58 AM (7 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
60ed7d1
Parents:
573b810
Message:

runtest.py: Get Apache debug info before running prepare_env hook

This minimizes the risk of exceptions between the hook and the with
block containing the services, allowing for the hook to return a
cleanup callback later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtest.py

    r573b810 r7e10018  
    129129    bg_services = [backend, ocsp, msva]
    130130
    131     # TODO: check extra requirements (e.g. specific modules)
     131    # If VERBOSE is enabled, log the HTTPD build configuration
     132    if 'VERBOSE' in os.environ:
     133        apache2 = os.environ.get('APACHE2', 'apache2')
     134        subprocess.run([apache2, '-f', f'{srcdir}/base_apache.conf', '-V'],
     135                       check=True)
    132136
    133137    # This hook may modify the environment as needed for the test.
     
    138142        print(f'Skipping: {skip!s}')
    139143        sys.exit(77)
    140 
    141     # If VERBOSE is enabled, log the HTTPD build configuration
    142     if 'VERBOSE' in os.environ:
    143         apache2 = os.environ.get('APACHE2', 'apache2')
    144         subprocess.run([apache2, '-f', f'{srcdir}/base_apache.conf', '-V'],
    145                        check=True)
    146144
    147145    if 'USE_MSVA' in os.environ:
Note: See TracChangeset for help on using the changeset viewer.