Skip to content

Instantly share code, notes, and snippets.

@jquast
Created March 17, 2014 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jquast/9594840 to your computer and use it in GitHub Desktop.
Save jquast/9594840 to your computer and use it in GitHub Desktop.
(view as text)
tools/testall.py
in dir /tmp/pexpect-build (timeout 1200 secs)
watching logfiles {}
argv: ['tools/testall.py']
environment:
HOME=/export/home/vagrant
LANG=en_US.UTF-8
LOGNAME=vagrant
MAIL=/var/mail/vagrant
OLDPWD=/export/home/vagrant/pexpect
PAGER=/usr/bin/less -ins
PATH=/tmp/pexpect-build/tools:/usr/bin:/usr/sbin:/sbin:/usr/gnu/bin:/opt/omni/bin:tools/
PROJECT_PEXPECT_HOME=/tmp/pexpect-build
PWD=/tmp/pexpect-build
PYTHONIOENCODING=utf-8
PYTHONPATH=/tmp/pexpect-build:/export/home/vagrant/pexpect:
SHELL=/usr/bin/bash
SHLVL=1
SSH_CLIENT=10.0.2.2 49770 22
SSH_CONNECTION=10.0.2.2 49770 10.0.2.15 22
SSH_TTY=/dev/pts/2
TERM=xterm
TZ=UTC
USER=vagrant
VIRTUALENVWRAPPER_HOOK_DIR=/export/home/vagrant/.virtualenvs
VIRTUALENVWRAPPER_PROJECT_FILENAME=.project
WORKON_HOME=/export/home/vagrant/.virtualenvs
_=/usr/bin/buildslave
using PTY: False
Testing pexpect 3.1 using python 2.6.8:
Adding: tests/test_FSM
Adding: tests/test_ansi
Adding: tests/test_command_list_split
Adding: tests/test_constructor
Adding: tests/test_ctrl_chars
Adding: tests/test_destructor
Adding: tests/test_dotall
Adding: tests/test_filedescriptor
Adding: tests/test_interact
Adding: tests/test_isalive
Adding: tests/test_log
Adding: tests/test_misc
Adding: tests/test_missing_command
Adding: tests/test_performance
Adding: tests/test_pickling
Adding: tests/test_psh
Adding: tests/test_pxssh
Adding: tests/test_run_out_of_pty
Adding: tests/test_screen
Adding: tests/test_timeout_pattern
Adding: tests/test_unicode
Adding: tests/test_winsize
Adding: tests/test_expect
Adding: tests/test_run
test_ansi.ansiTestCase.test_tetris .
test_ansi.ansiTestCase.test_torturet ..
test_ansi.ansiTestCase.test_write .
test_command_list_split.SplitCommandLineTestCase.testSplitSizes .
test_constructor.TestCaseConstructor.test_constructor .
test_constructor.TestCaseConstructor.test_named_parameters .
test_ctrl_chars.TestCtrlChars.test_bad_sendcontrol_chars .
test_ctrl_chars.TestCtrlChars.test_control_chars
test_ctrl_chars.TestCtrlChars.test_sendcontrol .
test_ctrl_chars.TestCtrlChars.test_sendintr ..
test_destructor.TestCaseDestructor.test_destructor .
test_dotall.TestCaseDotall.test_dotall .
test_dotall.TestCaseDotall.test_precompiled .
test_expect.ExpectTestCase.test_bad_arg .
test_expect.ExpectTestCase.test_before_after .
test_expect.ExpectTestCase.test_before_after_exact .
test_expect.ExpectTestCase.test_expect .
test_expect.ExpectTestCase.test_expect_basic .
test_expect.ExpectTestCase.test_expect_echo E
test_expect.ExpectTestCase.test_expect_echo_exact E
test_expect.ExpectTestCase.test_expect_eof .
test_expect.ExpectTestCase.test_expect_exact .
test_expect.ExpectTestCase.test_expect_exact_basic .
test_expect.ExpectTestCase.test_expect_ignore_case .
test_expect.ExpectTestCase.test_expect_ignore_case_flag .
test_expect.ExpectTestCase.test_expect_index E
test_expect.ExpectTestCase.test_expect_index_exact E
test_expect.ExpectTestCase.test_expect_order E
test_expect.ExpectTestCase.test_expect_order_exact E
test_expect.ExpectTestCase.test_expect_timeout
test_expect.ExpectTestCase.test_greed ..
test_expect.ExpectTestCase.test_greed_exact .
test_expect.ExpectTestCase.test_ordering .
test_expect.ExpectTestCase.test_ordering_exact .
test_expect.ExpectTestCase.test_signal_handling
test_expect.ExpectTestCase.test_timeout_none ..
test_expect.ExpectTestCase.test_unexpected_eof .
test_expect.ExpectTestCase.test_waitnoecho Etest_filedescriptor.ExpectTestCase.test_fd
test_filedescriptor.ExpectTestCase.test_fd .test_filedescriptor.ExpectTestCase.test_fd_isalive
test_filedescriptor.ExpectTestCase.test_fd_isalive .test_filedescriptor.ExpectTestCase.test_fd_isatty
test_filedescriptor.ExpectTestCase.test_fd_isatty .test_filedescriptor.ExpectTestCase.test_maxread
test_filedescriptor.ExpectTestCase.test_maxread .
test_interact.InteractTestCase.test_interact .
test_interact.InteractTestCase.test_interact_unicode .
test_isalive.IsAliveTestCase.test_expect_isalive_consistent_multiple_calls .
test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_SIGINT .
test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_SIGKILL .
test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_normal_termination .
test_isalive.IsAliveTestCase.test_expect_wait
test_isalive.IsAliveTestCase.test_forced_terminate ..
test_isalive.IsAliveTestCase.test_signal_wait .
test_log.TestCaseLog.test_log .
test_log.TestCaseLog.test_log_logfile_read .
test_log.TestCaseLog.test_log_logfile_send .
test_log.TestCaseLog.test_log_send_and_received .
test_misc.TestCaseMisc.test_bad_arguments .
test_misc.TestCaseMisc.test_bad_child_pid .
test_misc.TestCaseMisc.test_bad_type_in_expect .
test_misc.TestCaseMisc.test_cwd .
test_misc.TestCaseMisc.test_env .
test_misc.TestCaseMisc.test_eof .
test_misc.TestCaseMisc.test_exception_tb .
test_misc.TestCaseMisc.test_isalive .
test_misc.TestCaseMisc.test_isatty F
test_misc.TestCaseMisc.test_iter .
test_misc.TestCaseMisc.test_nonnative_pty_fork .
test_misc.TestCaseMisc.test_read .
test_misc.TestCaseMisc.test_readline
test_misc.TestCaseMisc.test_readlines .
test_misc.TestCaseMisc.test_searcher_re
test_misc.TestCaseMisc.test_searcher_string
test_misc.TestCaseMisc.test_sighup ....
test_misc.TestCaseMisc.test_terminate .
test_misc.TestCaseMisc.test_which .
test_misc.TestCaseMisc.test_write .
test_misc.TestCaseMisc.test_writelines .
test_missing_command.MissingCommandTestCase.testMissingCommand .
test_performance.PerformanceTestCase.test_100000 ......
100000 calls to plain_range: 17.9895498753
100000 calls to window_range: 15.5029349327
100000 calls to exact_range: 15.468873024
100000 calls to ewin_range: 15.4028949738
100000 calls to faster_range: 0.301862955093
test_run.RunFuncTestCase.test_run .
test_run.RunFuncTestCase.test_run_bad_exitstatus .
test_run.RunFuncTestCase.test_run_callback
test_run.RunFuncTestCase.test_run_exit ..
test_run.RunUnicodeFuncTestCase.test_run .
test_run.RunUnicodeFuncTestCase.test_run_bad_exitstatus .
test_run.RunUnicodeFuncTestCase.test_run_callback
test_run.RunUnicodeFuncTestCase.test_run_exit ..
test_run.RunUnicodeFuncTestCase.test_run_unicode .
test_screen.screenTestCase.test_cursor_save .
test_screen.screenTestCase.test_fill .
test_screen.screenTestCase.test_get_region .
test_screen.screenTestCase.test_insert .
test_screen.screenTestCase.test_put .
test_screen.screenTestCase.test_scroll .
test_timeout_pattern.Exp_TimeoutTestCase.test_correctStackTrace
test_timeout_pattern.Exp_TimeoutTestCase.test_exp_timeout_notThrown ..
test_timeout_pattern.Exp_TimeoutTestCase.test_matches_exp_timeout .
test_timeout_pattern.Exp_TimeoutTestCase.test_pattern_printout
test_timeout_pattern.Exp_TimeoutTestCase.test_stacktraceMunging .
test_unicode.UnicodeTests.test_expect_basic ..
test_unicode.UnicodeTests.test_expect_echo E
test_unicode.UnicodeTests.test_expect_echo_exact E
test_unicode.UnicodeTests.test_expect_exact_basic .
test_unicode.UnicodeTests.test_log_unicode .
test_unicode.UnicodeTests.test_spawn_expect_ascii_unicode .
test_unicode.UnicodeTests.test_spawn_send_unicode .
test_unicode.UnicodeTests.test_spawn_utf8_incomplete .
test_winsize.TestCaseWinsize.test_winsize .
======================================================================
ERROR: This tests that echo can be turned on and off.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_expect.py", line 225, in test_expect_echo
self._expect_echo(p)
File "/tmp/pexpect-build/tests/test_expect.py", line 249, in _expect_echo
p.setecho(0) # Turn off tty echo
File "/tmp/pexpect-build/pexpect/__init__.py", line 834, in setecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
ERROR: Like test_expect_echo(), but using expect_exact().
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_expect.py", line 232, in test_expect_echo_exact
self._expect_echo(p)
File "/tmp/pexpect-build/tests/test_expect.py", line 249, in _expect_echo
p.setecho(0) # Turn off tty echo
File "/tmp/pexpect-build/pexpect/__init__.py", line 834, in setecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
ERROR: This tests that mixed list of regex strings, TIMEOUT, and EOF all
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_expect.py", line 279, in test_expect_index
self._expect_index(p)
File "/tmp/pexpect-build/tests/test_expect.py", line 289, in _expect_index
p.setecho(0)
File "/tmp/pexpect-build/pexpect/__init__.py", line 834, in setecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
ERROR: Like test_expect_index(), but using expect_exact().
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_expect.py", line 286, in test_expect_index_exact
self._expect_index(p)
File "/tmp/pexpect-build/tests/test_expect.py", line 289, in _expect_index
p.setecho(0)
File "/tmp/pexpect-build/pexpect/__init__.py", line 834, in setecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
ERROR: This tests that patterns are matched in the same order as given in the pattern_list.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_expect.py", line 136, in test_expect_order
self._expect_order(p)
File "/tmp/pexpect-build/tests/test_expect.py", line 148, in _expect_order
p.setecho(False)
File "/tmp/pexpect-build/pexpect/__init__.py", line 834, in setecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
ERROR: Like test_expect_order(), but using expect_exact().
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_expect.py", line 143, in test_expect_order_exact
self._expect_order(p)
File "/tmp/pexpect-build/tests/test_expect.py", line 148, in _expect_order
p.setecho(False)
File "/tmp/pexpect-build/pexpect/__init__.py", line 834, in setecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
ERROR: This tests that we can wait on a child process to set echo mode.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_expect.py", line 202, in test_waitnoecho
p1.waitnoecho(timeout=10)
File "/tmp/pexpect-build/pexpect/__init__.py", line 786, in waitnoecho
if not self.getecho():
File "/tmp/pexpect-build/pexpect/__init__.py", line 799, in getecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
ERROR: This tests that echo can be turned on and off.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_unicode.py", line 41, in test_expect_echo
self._expect_echo(p)
File "/tmp/pexpect-build/tests/test_unicode.py", line 56, in _expect_echo
p.setecho(0) # Turn off tty echo
File "/tmp/pexpect-build/pexpect/__init__.py", line 834, in setecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
ERROR: Like test_expect_echo(), but using expect_exact().
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_unicode.py", line 48, in test_expect_echo_exact
self._expect_echo(p)
File "/tmp/pexpect-build/tests/test_unicode.py", line 56, in _expect_echo
p.setecho(0) # Turn off tty echo
File "/tmp/pexpect-build/pexpect/__init__.py", line 834, in setecho
attr = termios.tcgetattr(self.child_fd)
error: (22, 'Invalid argument')
======================================================================
FAIL: test_isatty (test_misc.TestCaseMisc)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/pexpect-build/tests/test_misc.py", line 36, in test_isatty
assert child.isatty(), "Not returning True. Should always be True."
AssertionError: Not returning True. Should always be True.
----------------------------------------------------------------------
Ran 113 tests in 183.207s
FAILED (failures=1, errors=9)
program finished with exit code 1
elapsedTime=183.915461
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment