X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f41ecc930361f296938308e46748c92407ecd812..a5b7c827e89fb082a51c6ab48ab98261f85d2a24:/services/nodemanager/tests/__init__.py diff --git a/services/nodemanager/tests/__init__.py b/services/nodemanager/tests/__init__.py index e69de29bb2..c5eaf7636c 100644 --- a/services/nodemanager/tests/__init__.py +++ b/services/nodemanager/tests/__init__.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +import logging +import os + +# Set the ANMTEST_LOGLEVEL environment variable to enable logging at that level. +loglevel = os.environ.get('ANMTEST_LOGLEVEL', 'CRITICAL') +logging.basicConfig(level=getattr(logging, loglevel.upper())) + +# Set the ANM_TIMEOUT environment variable to the maximum amount of time to +# wait for tested actors to respond to important messages. The default value +# is very conservative, because a small value may produce false negatives on +# slower systems. If you're debugging a known timeout issue, however, you may +# want to set this lower to speed up tests. +pykka_timeout = int(os.environ.get('ANMTEST_TIMEOUT', '10'))