diff options
author | Thomas Kluyver <takowl@gmail.com> | 2013-10-21 17:00:06 -0700 |
---|---|---|
committer | Thomas Kluyver <takowl@gmail.com> | 2013-10-21 17:00:06 -0700 |
commit | 35931f5d160a8307773db35e56fcc247a51d8219 (patch) | |
tree | a6e2d795a4a5030287fbaf3559e60f032e71d4bb /tests/fakessh | |
parent | 1e830ff97c628fc20ed727dc3fd0a4d971d279d5 (diff) | |
download | pexpect-git-35931f5d160a8307773db35e56fcc247a51d8219.tar.gz |
Test and cleanup of pexpect.psh
Diffstat (limited to 'tests/fakessh')
-rwxr-xr-x | tests/fakessh/ssh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/fakessh/ssh b/tests/fakessh/ssh index 318c18a..28eedc4 100755 --- a/tests/fakessh/ssh +++ b/tests/fakessh/ssh @@ -1,4 +1,6 @@ #!/usr/bin/env python +from __future__ import print_function + import getpass import sys PY3 = (sys.version_info[0] >= 3) @@ -19,5 +21,9 @@ while True: prompt = eval(cmd[4:]).replace('\$', '$') elif cmd == 'ping': print('pong') + elif cmd.startswith('ls'): + print('file1.py', 'file2.html', sep='\t') + elif cmd == 'echo $?': + print(0) elif cmd in ('exit', 'logout'): break
\ No newline at end of file |