ktest: Cleanup terminal on dodie() failure
authorJosh Poimboeuf <jpoimboe@redhat.com>
Fri, 30 Jan 2015 02:54:53 +0000 (20:54 -0600)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 2 Feb 2015 15:43:39 +0000 (10:43 -0500)
commit1cb9e64298e9af6b6a8962d43abefdf0b8a635f9
tree49a0f48e46100d42eca707d025fd7448f333b820
parent4bf6e1fc992a19e3a1ce7798df969817467c4360
ktest: Cleanup terminal on dodie() failure

If dodie() is called with the console open, restore the terminal's
original settings before dying.

Link: http://lkml.kernel.org/r/20150130025453.GB20952@treble.redhat.com
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl