Merge branch '8784-dir-listings'
[arvados.git] / services / nodemanager / tests / __init__.py
1 #!/usr/bin/env python
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 import logging
7 import os
8
9 # Set the ANMTEST_LOGLEVEL environment variable to enable logging at that level.
10 loglevel = os.environ.get('ANMTEST_LOGLEVEL', 'CRITICAL')
11 logging.basicConfig(level=getattr(logging, loglevel.upper()))
12
13 # Set the ANMTEST_TIMEOUT environment variable to the maximum amount of time to
14 # wait for tested actors to respond to important messages.  The default value
15 # is very conservative, because a small value may produce false negatives on
16 # slower systems.  If you're debugging a known timeout issue, however, you may
17 # want to set this lower to speed up tests.
18 pykka_timeout = int(os.environ.get('ANMTEST_TIMEOUT', '10'))