diff options
| author | Shuvam Pandey <shuvampandey1@gmail.com> | 2026-02-27 18:16:36 +0545 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2026-04-06 14:07:29 -0600 |
| commit | e42c349f4cdfa43cb39a68c8f764f8cafc23a9a9 (patch) | |
| tree | 7cb029c906448e2666515e12e7b740548bb3561c /rust/kernel/ptr/git@git.tavy.me:linux.git | |
| parent | b73f50ffd4bddcd42b312a6c2b3d990f2cde7bf7 (diff) | |
kunit: tool: skip stty when stdin is not a tty
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@gmail.com>
Reviewed-by: David Gow <david@davidgow.net>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
