mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Adding parameter to tidy for skipping print text when running tests
This commit is contained in:
parent
97a45dc30c
commit
33d8e21cff
2 changed files with 13 additions and 12 deletions
|
@ -577,11 +577,12 @@ def check_spec(file_name, lines):
|
|||
brace_count -= 1
|
||||
|
||||
|
||||
def collect_errors_for_files(files_to_check, checking_functions, line_checking_functions):
|
||||
def collect_errors_for_files(files_to_check, checking_functions, line_checking_functions, print_text=True):
|
||||
(has_element, files_to_check) = is_iter_empty(files_to_check)
|
||||
if not has_element:
|
||||
raise StopIteration
|
||||
print '\rChecking files for tidiness...'
|
||||
if print_text:
|
||||
print '\rChecking files for tidiness...'
|
||||
for filename in files_to_check:
|
||||
with open(filename, "r") as f:
|
||||
contents = f.read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue