[ADD] stop_interact test; [ADD] failure warnings around setecho

This commit is contained in:
Benedek Racz
2019-11-29 10:17:51 +01:00
parent 0b3a4979c4
commit e04ee4f175
2 changed files with 41 additions and 4 deletions

View File

@@ -50,6 +50,8 @@ class InteractTestCase(PexpectTestCase.PexpectTestCase):
# Send a command
p.sendline('echo hello')
p.expect(cmdPrompt)
p.stop_interact()
self.assertEqual('hello', p.before.splitlines()[1])