Re: [PATCH] kunit: tool: skip stty when stdin is not a tty
From: David Gow
Date: Mon Mar 02 2026 - 05:42:17 EST
Le 27/02/2026 à 8:31 PM, Shuvam Pandey a écrit :
run_kernel() cleanup and signal_handler() invoke stty unconditionally.
When stdin is not a tty (for example in CI or unit tests), this writes
noise to stderr.
Call stty only when stdin is a tty.
Add regression tests for these paths:
- run_kernel() with non-tty stdin
- signal_handler() with non-tty stdin
- signal_handler() with tty stdin
Signed-off-by: Shuvam Pandey <shuvampandey1@xxxxxxxxx>
---
Reviewed-by: David Gow <david@xxxxxxxxxxxx>
Cheers,
-- David