diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/py/conftest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/py/conftest.py b/test/py/conftest.py index 8ce680a92a0..37d9347a85f 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -28,9 +28,10 @@ import sys from spawn import BootFail, Timeout, Unexpected, handle_exception import time -# Globals: The HTML log file, and the top-level fixture +# Globals: The HTML log file, the top-level fixture and the config container log = None ubman_fix = None +ubconfig = None TEST_PY_DIR = os.path.dirname(os.path.abspath(__file__)) @@ -613,7 +614,7 @@ def show_timings(): if too_long: show_bar(f'>{get_time_delta(max_dur)}', too_long_msecs, too_long) log.info(buf.getvalue()) - if ubconfig.timing: + if ubconfig and ubconfig.timing: print(buf.getvalue(), end='') |
