diff options
| author | Shuvam Pandey <shuvampandey1@gmail.com> | 2026-02-27 15:31:36 +0300 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2026-04-06 23:07:29 +0300 |
| commit | e42c349f4cdfa43cb39a68c8f764f8cafc23a9a9 (patch) | |
| tree | 7cb029c906448e2666515e12e7b740548bb3561c /scripts | |
| parent | b73f50ffd4bddcd42b312a6c2b3d990f2cde7bf7 (diff) | |
| download | linux-e42c349f4cdfa43cb39a68c8f764f8cafc23a9a9.tar.xz | |
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 'scripts')
0 files changed, 0 insertions, 0 deletions
