diff options
| author | Jeff Quast <contact@jeffquast.com> | 2014-11-22 00:56:13 -0800 |
|---|---|---|
| committer | Jeff Quast <contact@jeffquast.com> | 2014-11-22 00:56:13 -0800 |
| commit | d455323193f358f0cdfcd8e880e8f82735ca9caf (patch) | |
| tree | 7474594e8c114d35bed0684e78f4ca94fc35d2d6 | |
| parent | dfa9b3d87803cadc725a32cfc79133d70c847126 (diff) | |
| download | pexpect-occasionally-failing-testcases.tar.gz | |
Fix 2nd and 3rd expect/response PS1 promptoccasionally-failing-testcases
| -rwxr-xr-x | tests/test_run.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_run.py b/tests/test_run.py index 25b9907..c018b4d 100755 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -74,9 +74,9 @@ class RunFuncTestCase(PexpectTestCase.PexpectTestCase): def test_run_tuple_list (self): events = [ # second match on 'abc', echo 'def' - ('abc\r\n.*$', 'echo "def"\n'), + ('abc\r\n.*GO:', 'echo "def"\n'), # final match on 'def': exit - ('def\r\n.*$', 'exit\n'), + ('def\r\n.*GO:', 'exit\n'), # first match on 'GO:' prompt, echo 'abc' ('GO:', 'echo "abc"\n') ] |
