OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import codecs | 6 import codecs |
7 import hashlib | 7 import hashlib |
8 import json | 8 import json |
9 import math | 9 import math |
10 import os | 10 import os |
11 import shutil | 11 import shutil |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 # Our alternate validators don't currently cover everything. | 350 # Our alternate validators don't currently cover everything. |
351 # For now, don't fail just emit warning (and a tally of failures). | 351 # For now, don't fail just emit warning (and a tally of failures). |
352 print '@@@STEP_TEXT@FAILED %d times (%.1f%% are incorrect)@@@' % ( | 352 print '@@@STEP_TEXT@FAILED %d times (%.1f%% are incorrect)@@@' % ( |
353 self.failures, self.failures * 100 / (self.successes + self.failures)) | 353 self.failures, self.failures * 100 / (self.successes + self.failures)) |
354 if warn_only: | 354 if warn_only: |
355 print '@@@STEP_WARNINGS@@@' | 355 print '@@@STEP_WARNINGS@@@' |
356 else: | 356 else: |
357 raise FailedTests('FAILED %d tests' % self.failures) | 357 raise FailedTests('FAILED %d tests' % self.failures) |
358 else: | 358 else: |
359 print 'SUCCESS' | 359 print 'SUCCESS' |
OLD | NEW |