| Message ID | 20251014111301.1059317-3-sjg@chromium.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org>
X-Original-To: u-boot-concept@u-boot.org
Delivered-To: u-boot-concept@u-boot.org
Authentication-Results: mail.u-boot.org;
dkim=fail reason="signature verification failed" (1024-bit key;
unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256
header.s=google header.b=U7HRTDrj;
dkim-atps=neutral
Received: from localhost (localhost [127.0.0.1])
by mail.u-boot.org (Postfix) with ESMTP id E5BB768112
for <u-boot-concept@u-boot.org>; Tue, 14 Oct 2025 05:13:33 -0600 (MDT)
X-Virus-Scanned: Debian amavis at
Received: from mail.u-boot.org ([127.0.0.1])
by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP
id eWf3yDfIvDdl for <u-boot-concept@u-boot.org>;
Tue, 14 Oct 2025 05:13:33 -0600 (MDT)
Received: from mail.u-boot.org (localhost [127.0.0.1])
by mail.u-boot.org (Postfix) with ESMTP id B2AB86811C
for <u-boot-concept@u-boot.org>; Tue, 14 Oct 2025 05:13:33 -0600 (MDT)
Received: from localhost (localhost [127.0.0.1])
by mail.u-boot.org (Postfix) with ESMTP id 62F696813F
for <concept@u-boot.org>; Tue, 14 Oct 2025 05:13:31 -0600 (MDT)
X-Virus-Scanned: Debian amavis at
Received: from mail.u-boot.org ([127.0.0.1])
by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP
id iDAdklqZrLEb for <concept@u-boot.org>;
Tue, 14 Oct 2025 05:13:31 -0600 (MDT)
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.53;
helo=mail-io1-f53.google.com; envelope-from=sjg@chromium.org;
receiver=u-boot.org
Received: from mail-io1-f53.google.com (mail-io1-f53.google.com
[209.85.166.53])
by mail.u-boot.org (Postfix) with ESMTPS id 90AA166DD8
for <concept@u-boot.org>; Tue, 14 Oct 2025 05:13:25 -0600 (MDT)
Received: by mail-io1-f53.google.com with SMTP id
ca18e2360f4ac-93ba2eb817aso508679039f.2
for <concept@u-boot.org>; Tue, 14 Oct 2025 04:13:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=chromium.org; s=google; t=1760440404; x=1761045204; darn=u-boot.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to;
bh=9iPXih7tZGPLN+IwYMbMrgJStOpE/82CTIl7kRjUX70=;
b=U7HRTDrjM34LdAf2f/nD3DOOwOe7fL+bN/+/UPF/pZNF3OtHbLFQSw3jT4HVN6duXx
0dHBCvUYBMXuMhDKEvJzi1SSYHVnhBJySPUyAoCUsrbby84kf8BocLM+Jhw2xKYARWAc
XNhMRME0N61+vzKYac3VG686gjNM39IGvJLBo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1760440404; x=1761045204;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=9iPXih7tZGPLN+IwYMbMrgJStOpE/82CTIl7kRjUX70=;
b=mkTWlQyBtMBpS/6ARADkiAZQFXPvzAzkdBQzCVahpbUUxXHkhayl2dsbMsrBlszS+n
w2mTN8HiglP0ID0bo1w1I5YDDRNKmUuBn48Q8OC3hjkXJTFxlldcWrDAFsuWovlHJprw
VjKpxvs4j4mJfxT2sqC4COWwxG64HHtQ2TTRv/TMVDivGw4lgmoTKgWO2EXkKGOepLp9
cY/gkw9Vd4XRypPnHH6PYYMogSOAy0OLdV9X7rxAy6mkSp2v04MwkoC2H3/tlZMcnoRl
wi5cYmGVackmEFKeoMrq/IrGFANv8JIC0RdhNg1GVtkkGQd9w8f+rRyEy8ev5U7S86st
ce2w==
X-Gm-Message-State: AOJu0YzDj/34WF5n/YrC2jAty0KMk2ukmFssVIz5KxdkOPcTkN85vIjZ
eBK8sLEa6I6y9Y8DGXj/NUP5aaG8DzcNuHumTo+n+2JCwlAbDTFbyEt8IZIaPAlyQjC/oo3tGxl
WGtf8IQ7m63I=
X-Gm-Gg: ASbGnctwZvarJYcsJXGy7S50Ifo2wkKSCaqnPLJ14npR9avTe5/rihGjw8MdHZigz9f
GfCfKQASIBnKJZYvSGWtt3jKzP6uRFF8LAzFNDlvX/YNE+ds14vCJfxwjWpGRwh8A9BHWo+JUvH
IBcVkS+v3NsBPikMrTkwFETGNZ6YguKybbl6rU/m/ujc/dr7Aww/AvphK4hsU/H2tmAf+/qDfkk
trLU3d3X5hb0hSeNZlNyzn8Ti2k7J76wlQj6OM9xq9geKJNfu8L5hF/CB3+xlViUKbv6bVlLQ5s
TlNOsYYYsAmA0mhDHgy9bxir9z8avXJHK1jCmoskiZkuTc2d5KZ13wIEm7vqK4YN/vjgqSRzPli
gloKnmGxnz4lJfhm4IVBJEIFuW5GnVaAGCF8=
X-Google-Smtp-Source:
AGHT+IEj0NC9dD2joOstTYh98waCkHrY5sXJy6VGZakVCHq+a6SnPGIZcikwAQh8sIdpIGlk4BevgQ==
X-Received: by 2002:a05:6e02:1885:b0:430:a66b:4ec7 with SMTP id
e9e14a558f8ab-430a66b50b2mr8640755ab.27.1760440404352;
Tue, 14 Oct 2025 04:13:24 -0700 (PDT)
Received: from chromium.org ([73.34.74.121])
by smtp.gmail.com with ESMTPSA id
e9e14a558f8ab-430a3869174sm4608785ab.15.2025.10.14.04.13.21
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 14 Oct 2025 04:13:22 -0700 (PDT)
From: Simon Glass <sjg@chromium.org>
To: U-Boot Concept <concept@u-boot.org>
Date: Tue, 14 Oct 2025 05:12:39 -0600
Message-ID: <20251014111301.1059317-3-sjg@chromium.org>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20251014111301.1059317-1-sjg@chromium.org>
References: <20251014111301.1059317-1-sjg@chromium.org>
MIME-Version: 1.0
Message-ID-Hash: VJNSR2URQG7MQAFDDRBTCYPXY2GYYLMW
X-Message-ID-Hash: VJNSR2URQG7MQAFDDRBTCYPXY2GYYLMW
X-MailFrom: sjg@chromium.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop;
banned-address; emergency; member-moderation; nonmember-moderation;
administrivia; implicit-dest; max-recipients; max-size; news-moderation;
no-subject; digests; suspicious-header
CC: Simon Glass <sjg@chromium.org>
X-Mailman-Version: 3.3.10
Precedence: list
Subject: [Concept] [PATCH 02/16] video: Report failure to write a frame to a
file
List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org>
Archived-At:
<https://lists.u-boot.org/archives/list/concept@u-boot.org/message/VJNSR2URQG7MQAFDDRBTCYPXY2GYYLMW/>
List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/>
List-Help: <mailto:concept-request@u-boot.org?subject=help>
List-Owner: <mailto:concept-owner@u-boot.org>
List-Post: <mailto:concept@u-boot.org>
List-Subscribe: <mailto:concept-join@u-boot.org>
List-Unsubscribe: <mailto:concept-leave@u-boot.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
|
| Series |
boot: Separate out the boot-menu style
|
|
Commit Message
Simon Glass
Oct. 14, 2025, 11:12 a.m. UTC
Rather than just printing a message (which is suppressed unless -v is
used) fail the test if it is not possible to write to the provided
directory.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
test/dm/video.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/test/dm/video.c b/test/dm/video.c index e51ff7789c7..616aee3f84d 100644 --- a/test/dm/video.c +++ b/test/dm/video.c @@ -169,9 +169,10 @@ int video_compress_fb(struct unit_test_state *uts, struct udevice *dev, snprintf(filename, sizeof(filename), "%s/frame%d.bmp", state->video_frames_dir, state->video_frame_count++); ret = video_write_bmp(uts, dev, filename); - if (ret) - printf("Failed to write frame to %s: %d\n", filename, - ret); + if (ret) { + ut_reportf("Failed to write frame to %s: %d", + filename, ret); + } } /* provide a useful delay if -V flag is used or LOG_DEBUG is set */