| Message ID | 20260329150140.4095446-2-sjg@u-boot.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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1774796520; bh=To45w+1AETczLa39yFpi7+ngu84VXNlW7R5xbeieEjA=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Xtglq+Co3hfbdzF46vAxqPMjQN5aqsAuhwQa4tfW7dNMbb0FSvm9HaTzkcehPZjhc mbRIFrJqyfVntO/KmKOV6+vXe1hBX8tKYfan7HBOJLYC6BM1Q1sYLs0cK7jC3OnE0q y5uSCDzImpadmQU5BTLbyUMabLHTr2Yo+r8hrXaejQ+pp5gSQgLZK5LDrwaFSFaiJb C+ckbVDhAHpiDC76pBP4vTW1BCEF7q/P2LrKHI4dXxXSAa9OeiRU8nu14y69DqI3PL p4pmf1AeND8tyLypNWZki+DlK1YvyY0FnziSpIqhWPtCpYQeyMwnY7F9ej9AsH0MCo umMnT9JbdFVRA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id ED65F6A2D3 for <u-boot-concept@u-boot.org>; Sun, 29 Mar 2026 09:02:00 -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 UPUKAvW3bCbG for <u-boot-concept@u-boot.org>; Sun, 29 Mar 2026 09:02:00 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1774796520; bh=To45w+1AETczLa39yFpi7+ngu84VXNlW7R5xbeieEjA=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=Xtglq+Co3hfbdzF46vAxqPMjQN5aqsAuhwQa4tfW7dNMbb0FSvm9HaTzkcehPZjhc mbRIFrJqyfVntO/KmKOV6+vXe1hBX8tKYfan7HBOJLYC6BM1Q1sYLs0cK7jC3OnE0q y5uSCDzImpadmQU5BTLbyUMabLHTr2Yo+r8hrXaejQ+pp5gSQgLZK5LDrwaFSFaiJb C+ckbVDhAHpiDC76pBP4vTW1BCEF7q/P2LrKHI4dXxXSAa9OeiRU8nu14y69DqI3PL p4pmf1AeND8tyLypNWZki+DlK1YvyY0FnziSpIqhWPtCpYQeyMwnY7F9ej9AsH0MCo umMnT9JbdFVRA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id AE10D6A2AB for <u-boot-concept@u-boot.org>; Sun, 29 Mar 2026 09:02:00 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1774796518; bh=GSMRS6M2FTolFF6qEWopzdDsvhgBR5Z5nDikQw7ODzY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pZSv40u2Toi0Jn7AdjQe7Es+JM9oURyIx1LTdLSt6z8AZZmBfiFQMjCNZZhBHu791 reomrrf3mZNrFMrPioEPodI87rnv/lzWc6QwzTlef7N7X2Zn9FqxTt/C4WYIgxCnz8 ruQjo8Dv1FamTpMVv1QugY8rxYVZnYG9qI1qhhqY3OFbvY2EfAwhRWE54Meht+4ZVS ZazWlBG8hyvMrWebJusLv5A3EWN932pfClSpcne0s5QCww/8tM1wjHKeThBCnFc1vG YN5t2D6nD+FLhqlAMxbBUgX/5w/K7b7rYXDMIM+3qNLyAq4mRmIJ1WSKohi05k/AlC TJhohgh4XhU6w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 917DE6A2D0; Sun, 29 Mar 2026 09:01:58 -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 10026) with ESMTP id oWeCbX7KCZ9u; Sun, 29 Mar 2026 09:01:58 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1774796516; bh=KC6epDvCNXv5lzgtCw+7SpVNGCLzlVxAQGAvXvrgeNU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r8/ryCvHm1zXXCoIEY8dFxrk1EE8WN9/vjq5YEUQfZbfQ88b4nZumWpSW/1BMWK4J Li2OY8XQ40KY3TWX/oqyk/CuKwq6Jwv9k4vWtFDSkayf0XiW0JOKid4PlVDcYB5kI4 O/8+rnrkFpkWPH2NfcIkDq7LdSBBJd8P9PZkq0tU3u6FFnao0yuSdwZG4AIy5geA4D 2yh5zAIXBU0XLBv80EImkGqY8MA5VJdRNQzGeJLMB1ErDUa84B8cyl73ouix6vcEhy 1ZG36COUMfMM+UisMoJ0J5lSc8+uTopA2a/JT7+Q4UN6O4tYY36Ezndn2bKT3ClENg tIRvhjJ9FqIyA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 2E7896A2D3; Sun, 29 Mar 2026 09:01:56 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sun, 29 Mar 2026 09:01:26 -0600 Message-ID: <20260329150140.4095446-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260329150140.4095446-1-sjg@u-boot.org> References: <20260329150140.4095446-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: PLGHYQGARNXIMBSPI32X3QFQVRIREK6C X-Message-ID-Hash: PLGHYQGARNXIMBSPI32X3QFQVRIREK6C X-MailFrom: sjg@u-boot.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 01/11] u_boot_pylib: Use PIPE_PTY when an output function is given 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/PLGHYQGARNXIMBSPI32X3QFQVRIREK6C/> 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 |
patman: Add workflow tracking for patch series
|
|
Commit Message
Simon Glass
March 29, 2026, 3:01 p.m. UTC
From: Simon Glass <sjg@chromium.org> When an output_func is provided to run_pipe(), use PIPE_PTY instead of PIPE for stdout. This ensures the subprocess sees a tty, so interactive prompts and editors work correctly while still allowing the output to be captured and processed in real time. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/u_boot_pylib/command.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tools/u_boot_pylib/command.py b/tools/u_boot_pylib/command.py index 370713bdf41..54a7ee8e672 100644 --- a/tools/u_boot_pylib/command.py +++ b/tools/u_boot_pylib/command.py @@ -117,7 +117,10 @@ def run_pipe(pipe_list, infile=None, outfile=None, capture=False, elif stdin_data: kwargs['stdin'] = cros_subprocess.PIPE if pipeline or capture: - kwargs['stdout'] = cros_subprocess.PIPE + if output_func: + kwargs['stdout'] = cros_subprocess.PIPE_PTY + else: + kwargs['stdout'] = cros_subprocess.PIPE elif outfile: kwargs['stdout'] = open(outfile, 'wb') if capture_stderr: