verify.py (13153:f6ea343bb4f9) verify.py (13178:1e2d0a8ffdb0)
1#!/usr/bin/env python2
2#
3# Copyright 2018 Google, Inc.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 178 unchanged lines hidden (view full) ---

187 self.test = test
188 self.tag = tag
189
190 def check(self):
191 with open(self.text) as test_f, open(self.ref) as ref_f:
192 return test_f.read() == ref_f.read()
193
194def tagged_filt(tag, num):
1#!/usr/bin/env python2
2#
3# Copyright 2018 Google, Inc.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 178 unchanged lines hidden (view full) ---

187 self.test = test
188 self.tag = tag
189
190 def check(self):
191 with open(self.text) as test_f, open(self.ref) as ref_f:
192 return test_f.read() == ref_f.read()
193
194def tagged_filt(tag, num):
195 return (r'^\n{}: \({}{}\) .*\n(In file: .*\n)?'
195 return (r'\n{}: \({}{}\) .*\n(In file: .*\n)?'
196 r'(In process: [\w.]* @ .*\n)?').format(tag, tag[0], num)
197
198def error_filt(num):
199 return tagged_filt('Error', num)
200
201def warning_filt(num):
202 return tagged_filt('Warning', num)
203

--- 356 unchanged lines hidden ---
196 r'(In process: [\w.]* @ .*\n)?').format(tag, tag[0], num)
197
198def error_filt(num):
199 return tagged_filt('Error', num)
200
201def warning_filt(num):
202 return tagged_filt('Warning', num)
203

--- 356 unchanged lines hidden ---