sanitycheck: clean up TTY on exit

The code has a lot of sys.exit() calls, but internally these
just raise a special exception. Add a try...finally block
to ensure 'stty sane' is run before leaving the script.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-01-02 19:27:40 -08:00 committed by Anas Nashif
commit 1fe1f3a23d

View file

@ -4309,4 +4309,7 @@ def main():
if __name__ == "__main__":
main()
try:
main()
finally:
os.system("stty sane")