mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge patch series "a few test.py improvements"
David Lechner <dlechner@baylibre.com> says: While trying to run the test suite for the first time, I encountered a few minor issues. Here are a few patches to address them. Link: https://lore.kernel.org/r/20260105-a-few-test-py-improvements-v3-0-fea38243ca5b@baylibre.com
This commit is contained in:
@@ -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='')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user