ktest: Restore stty setting at first in dodie
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Fri, 20 Jan 2023 09:16:16 +0000 (18:16 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 20 Feb 2023 16:52:27 +0000 (11:52 -0500)
commit7dc8e24f0e09834341f84d37433840b353d64bc8
tree319af4fd8c46e89f6f3acea156382fe583a10044
parent4e7d2a8f0b52abf23b1dc13b3d88bc0923383cd5
ktest: Restore stty setting at first in dodie

The do_send_email() will call die before restoring stty if sendmail
setting is not correct or sendmail is not installed. It is safer to
restore it in the beginning of dodie().

Link: https://lkml.kernel.org/r/167420617635.2988775.13045295332829029437.stgit@devnote3
Cc: John 'Warthog9' Hawley <warthog9@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl