diff options
Diffstat (limited to 'test/Execute.py')
-rw-r--r-- | test/Execute.py | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/test/Execute.py b/test/Execute.py index 4caa4c4..2e53444 100644 --- a/test/Execute.py +++ b/test/Execute.py @@ -84,19 +84,17 @@ test.write('m.in', "m.in\n") import sys if sys.platform == 'win32': - expect = """\ -scons: *** Error 1 -scons: *** Error 2 -scons: *** nonexistent.in/*.*: The system cannot find the path specified -""" + expect = r"""scons: \*\*\* Error 1 +scons: \*\*\* Error 2 +scons: \*\*\* nonexistent.in/\*\.\*: (The system cannot find the path specified|Das System kann den angegebenen Pfad nicht finden)""" else: - expect = """\ -scons: *** Error 1 -scons: *** Error 2 -scons: *** nonexistent.in: No such file or directory -""" + expect = r"""scons: \*\*\* Error 1 +scons: \*\*\* Error 2 +scons: \*\*\* nonexistent\.in: No such file or directory""" + +test.run(arguments = '.', stdout = None, stderr = None) -test.run(arguments = '.', stderr=expect) +test.must_contain_all_lines(test.stderr(), expect.splitlines(), find=TestSCons.search_re) test.must_match('a.out', "a.in\n") test.must_match('b.out', "b.in\n") |