summaryrefslogtreecommitdiff
path: root/tools/binman/image_test.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-05-27 07:43:04 -0600
committerTom Rini <trini@konsulko.com>2025-05-27 07:43:04 -0600
commit6015a24a5a2647ab044333ed8e2462f90f855e36 (patch)
tree53fe80bee534a17f6c40e697cc112287a0b4b3c5 /tools/binman/image_test.py
parent39b815d02d7ce6af32bcf023d20243c404b75a84 (diff)
parentec2482a24ac3a1d0beadae80bcb28c8d89b4c1ab (diff)
Merge tag 'dm-next-27may25' of git://git.denx.de/u-boot-dm into next
Sync up Python tools from my tree - minor binman tweaks - terminal improvements in u_boot_pylib - patman move to asyncio - patman support for new 'series' subcommand
Diffstat (limited to 'tools/binman/image_test.py')
-rw-r--r--tools/binman/image_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/binman/image_test.py b/tools/binman/image_test.py
index 7d65e2d589a..26e161c91fc 100644
--- a/tools/binman/image_test.py
+++ b/tools/binman/image_test.py
@@ -7,7 +7,7 @@
import unittest
from binman.image import Image
-from u_boot_pylib.test_util import capture_sys_output
+from u_boot_pylib import terminal
class TestImage(unittest.TestCase):
def testInvalidFormat(self):
@@ -29,7 +29,7 @@ class TestImage(unittest.TestCase):
def testMissingSymbolOptional(self):
image = Image('name', 'node', test=True)
image._entries = {}
- with capture_sys_output() as (stdout, stderr):
+ with terminal.capture() as (stdout, stderr):
val = image.GetSymbolValue('_binman_type_prop_pname', True, 'msg', 0)
self.assertEqual(val, None)
self.assertEqual("Warning: msg: Entry 'type' not found in list ()\n",