From f330f8c2768a9d9691ea9a2a107a06b69fe9a1f8 Mon Sep 17 00:00:00 2001 From: Jeremy Shen Date: Thu, 11 Jun 2026 18:13:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20'uboot'/'u-boot'=20from=20fail?= =?UTF-8?q?=20keywords=20=E2=80=94=20too=20broad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Xilinx program_flash often outputs informational lines containing 'uboot' (mini u-boot image file, U-Boot version banner) which are not errors. The 'failed' keyword already catches 'U-Boot failed' and 'uboot failed' in actual failure scenarios. --- src/flash_programmer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flash_programmer.py b/src/flash_programmer.py index 75c7334..d88ca6b 100644 --- a/src/flash_programmer.py +++ b/src/flash_programmer.py @@ -38,7 +38,7 @@ ProgressCallback = Callable[[str, str], None] | None # Keywords in program_flash output that indicate failure even with rc=0 _FAIL_KEYWORDS = [ - "uboot", "u-boot", "failed", "cannot", "abort", + "failed", "cannot", "abort", "invalid", "unsupported", "timeout", ]