Chromium Code Reviews| Index: snapshot/win/end_to_end_test.py |
| diff --git a/snapshot/win/end_to_end_test.py b/snapshot/win/end_to_end_test.py |
| index 48c58a7667d3d3588452f8922f385877fa2ab5d8..bbf442eee09bbd9d725575d63f29a0369f56080c 100644 |
| --- a/snapshot/win/end_to_end_test.py |
| +++ b/snapshot/win/end_to_end_test.py |
| @@ -127,8 +127,8 @@ class CdbRun(object): |
| '-c', command + ';q' |
| ]) |
| - def Check(self, pattern, message): |
| - match_obj = re.search(pattern, self.out) |
| + def Check(self, pattern, message, re_flags=0): |
| + match_obj = re.search(pattern, self.out, re_flags) |
| if match_obj: |
| # Matched. Consume up to end of match. |
| self.out = self.out[match_obj.end(0):] |
| @@ -163,7 +163,8 @@ def RunTests(cdb_path, dump_path, pipe_name): |
| pipe_name_escaped = pipe_name.replace('\\', '\\\\') |
| out.Check(r'CommandLine: *\'.*crashy_program.exe *' + pipe_name_escaped, |
| 'some PEB data is correct') |
| - out.Check(r'SystemRoot=C:\\Windows', 'some of environment captured') |
| + out.Check(r'SystemRoot=C:\\Windows', 'some of environment captured', |
|
Mark Mentovai
2015/10/09 23:40:51
Is this the right number of backslashes, too?
scottmg
2015/10/09 23:44:37
I believe so. The r'' takes care of not needing an
|
| + re.IGNORECASE) |
| out = CdbRun(cdb_path, dump_path, '!teb') |
| out.Check(r'TEB at', 'found the TEB') |