Changeset 42097fb in mod_gnutls


Ignore:
Timestamp:
Dec 4, 2019, 2:34:57 PM (3 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, main, master, proxy-ticket
Children:
f9e13a5
Parents:
6d3dc34
Message:

https-test-client.py: Add --timeout parameter for TEST_QUERY_TIMEOUT

Location:
test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/https-test-client.py

    r6d3dc34 r42097fb  
    2929    parser.add_argument('-p', '--port', type=int,
    3030                        help='Access the specified port', default='8000')
     31    parser.add_argument('--timeout', type=float,
     32                        help='Timeout for HTTP requests', default='5.0')
    3133    parser.add_argument('--test-config', type=argparse.FileType('r'),
    3234                        required=True, help='load YAML test configuration')
     
    5456
    5557    for test_conn in conns:
    56         test_conn.run(host=args.host, port=args.port)
     58        test_conn.run(host=args.host, port=args.port, timeout=args.timeout)
  • test/runtests

    r6d3dc34 r42097fb  
    197197
    198198${PYTHON} ${srcdir}/https-test-client.py -p "${TEST_PORT}" "${TARGET}" \
    199           --test-config "${testdir}/test.yml"\
     199          --test-config "${testdir}/test.yml" \
     200          --timeout "${TEST_QUERY_TIMEOUT}" \
    200201    |& tee "$output"
    201202# We care about the exit status of the Python script, not tee
Note: See TracChangeset for help on using the changeset viewer.