diff options
author | askeing <askeing@gmail.com> | 2016-04-26 01:27:08 +0900 |
---|---|---|
committer | askeing <askeing@gmail.com> | 2016-04-26 01:27:08 +0900 |
commit | 33d8e21cffff54fed51c7101188c23179b1fc9a4 (patch) | |
tree | 88adef5885214c3dc82e78a1628f0770cf3072fc /python/tidy/servo_tidy/tidy.py | |
parent | 97a45dc30c007af441376493a02eb7604f3e5672 (diff) | |
download | servo-33d8e21cffff54fed51c7101188c23179b1fc9a4.tar.gz servo-33d8e21cffff54fed51c7101188c23179b1fc9a4.zip |
Adding parameter to tidy for skipping print text when running tests
Diffstat (limited to 'python/tidy/servo_tidy/tidy.py')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index b8aee48ac1b..6ddb72d416f 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -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() |