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 glob | 6 import glob |
7 import optparse | 7 import optparse |
8 import os | 8 import os |
9 import re | 9 import re |
10 import struct | 10 import struct |
11 import subprocess | 11 import subprocess |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 tests = test_format.LoadTestFile(test_file) | 367 tests = test_format.LoadTestFile(test_file) |
368 tests = [Test(options, test) for test in tests] | 368 tests = [Test(options, test) for test in tests] |
369 if options.update: | 369 if options.update: |
370 test_format.SaveTestFile(tests, test_file) | 370 test_format.SaveTestFile(tests, test_file) |
371 processed += 1 | 371 processed += 1 |
372 print '%s test files were processed.' % processed | 372 print '%s test files were processed.' % processed |
373 | 373 |
374 | 374 |
375 if __name__ == '__main__': | 375 if __name__ == '__main__': |
376 main(sys.argv[1:]) | 376 main(sys.argv[1:]) |
OLD | NEW |