Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Side by Side Diff: tests/abi_corpus/corpus_utils.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/abi_corpus/corpus_errors.py ('k') | tests/abi_corpus/startup_regression_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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'
OLDNEW
« no previous file with comments | « tests/abi_corpus/corpus_errors.py ('k') | tests/abi_corpus/startup_regression_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698