diff options
author | Robert Managan <ramanagan@att.net> | 2012-12-18 23:09:21 (GMT) |
---|---|---|
committer | Robert Managan <ramanagan@att.net> | 2012-12-18 23:09:21 (GMT) |
commit | b91167a75ea49620ea587482df0efd30d9a9cf16 (patch) | |
tree | 5767433bfda9d36e134af9b09446db20ddd34f0b /test/Interactive/shell.py | |
parent | 5758e27903c4e584b08ad2d69fa80884894e140e (diff) | |
parent | 02cae725ed116ae6cd996fe3bf5888f7f8f61b97 (diff) | |
download | SCons-b91167a75ea49620ea587482df0efd30d9a9cf16.zip SCons-b91167a75ea49620ea587482df0efd30d9a9cf16.tar.gz SCons-b91167a75ea49620ea587482df0efd30d9a9cf16.tar.bz2 |
update to latest SCons commits
Diffstat (limited to 'test/Interactive/shell.py')
-rw-r--r-- | test/Interactive/shell.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/Interactive/shell.py b/test/Interactive/shell.py index f4e89bd..842a12e 100644 --- a/test/Interactive/shell.py +++ b/test/Interactive/shell.py @@ -83,21 +83,21 @@ scons.send("build foo.out\n") scons.send("\n") if sys.platform == 'win32': - no_such_error = "'no_such_command' is not recognized as an internal or external command,\noperable program or batch file." + no_such_error = r"('no_such_command' is not recognized as an internal or external command,\s+operable program or batch file\.|Der Befehl \"no_such_command\" ist entweder falsch geschrieben oder\s+konnte nicht gefunden werden\.)" else: no_such_error = 'scons: no_such_command: No such file or directory' expect_stdout = """\ -scons>>> Copy("foo.out", "foo.in") -Touch("1") +scons>>> Copy\("foo.out", "foo.in"\) +Touch\("1"\) scons>>> hello from shell_command.py -scons>>> !%(_python_)s %(_shell_command_py_)s +scons>>> ![^"]+ ".*" hello from shell_command.py scons>>> hello from shell_command.py -scons>>> shell %(_python_)s %(_shell_command_py_)s +scons>>> shell [^"]+ ".*" hello from shell_command.py scons>>> hello from shell_command.py -scons>>> sh %(_python_)s %(_shell_command_py_)s +scons>>> sh [^"]+ ".*" hello from shell_command.py scons>>> %(no_such_error)s scons>>> !no_such_command arg1 arg2 @@ -108,9 +108,9 @@ scons: `foo.out' is up to date. scons>>> """ % locals() -test.finish(scons, stdout = expect_stdout) - +test.finish(scons, stdout = None) +test.must_contain_all_lines(test.stdout(), expect_stdout.splitlines(), find=TestSCons.search_re) test.pass_test() |