Changeset 9a48691 in mod_gnutls for test/mgstest


Ignore:
Timestamp:
Jan 8, 2020, 3:32:30 PM (19 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
baa0056
Parents:
dda0f4a
Message:

Test suite: Support checking preconditions in prepare_env hook

The hook may now raise unittest.SkipTest? to skip the test case if any
preconditions (e.g. availability of a certain Apache module) are not
met.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mgstest/hooks.py

    rdda0f4a r9a48691  
    2121    prepare_env:
    2222
    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.
    2532
    2633    run_connection:
Note: See TracChangeset for help on using the changeset viewer.