Loading
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>