From 7379b14d41367c5f0ef5ee83d6159ed76310fa82 Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Sat, 31 May 2008 18:17:31 +0200 Subject: [PATCH] Test --abort-errors --- tests/tests/command_line.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/tests/command_line.py b/tests/tests/command_line.py index fe5f129..96b6801 100644 --- a/tests/tests/command_line.py +++ b/tests/tests/command_line.py @@ -73,3 +73,12 @@ class TestCommandLine(unittest.TestCase): child.expect('Consider manually connecting or using ssh-keyscan') child.expect(pexpect.EOF) + def testAbortError(self): + child = launch_gsh(['localhost', 'unknown_host']) + child.expect('Error talking to unknown_host') + child.sendline(':quit') + child.expect(pexpect.EOF) + child = launch_gsh(['--abort-errors', 'localhost', 'unknown_host']) + child.expect('Error talking to unknown_host') + child.expect(pexpect.EOF) + -- 2.11.4.GIT