Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 325 for s in suites: | 325 for s in suites: |
| 326 s.ReadStatusFile(variables) | 326 s.ReadStatusFile(variables) |
| 327 s.ReadTestCases(ctx) | 327 s.ReadTestCases(ctx) |
| 328 if len(args) > 0: | 328 if len(args) > 0: |
| 329 s.FilterTestCasesByArgs(args) | 329 s.FilterTestCasesByArgs(args) |
| 330 all_tests += s.tests | 330 all_tests += s.tests |
| 331 s.FilterTestCasesByStatus(options.warn_unused, options.flaky_tests) | 331 s.FilterTestCasesByStatus(options.warn_unused, options.flaky_tests) |
| 332 if options.cat: | 332 if options.cat: |
| 333 verbose.PrintTestSource(s.tests) | 333 verbose.PrintTestSource(s.tests) |
| 334 continue | 334 continue |
| 335 variant_flags = s.VariantFlags() or VARIANT_FLAGS | 335 s.tests = [ t.CopyAddingFlags(v) for t in s.tests for v in s.VariantFlags(t, VARIANT_FLAGS) ] |
|
Jakob Kummerow
2013/10/17 13:03:42
nit: 80 cols please. I'd format as:
s.tests =
| |
| 336 s.tests = [ t.CopyAddingFlags(v) for t in s.tests for v in variant_flags ] | |
| 337 s.tests = ShardTests(s.tests, options.shard_count, options.shard_run) | 336 s.tests = ShardTests(s.tests, options.shard_count, options.shard_run) |
| 338 num_tests += len(s.tests) | 337 num_tests += len(s.tests) |
| 339 for t in s.tests: | 338 for t in s.tests: |
| 340 t.id = test_id | 339 t.id = test_id |
| 341 test_id += 1 | 340 test_id += 1 |
| 342 | 341 |
| 343 if options.cat: | 342 if options.cat: |
| 344 return 0 # We're done here. | 343 return 0 # We're done here. |
| 345 | 344 |
| 346 if options.report: | 345 if options.report: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 except KeyboardInterrupt: | 389 except KeyboardInterrupt: |
| 391 return 1 | 390 return 1 |
| 392 | 391 |
| 393 if options.time: | 392 if options.time: |
| 394 verbose.PrintTestDurations(suites, overall_duration) | 393 verbose.PrintTestDurations(suites, overall_duration) |
| 395 return exit_code | 394 return exit_code |
| 396 | 395 |
| 397 | 396 |
| 398 if __name__ == "__main__": | 397 if __name__ == "__main__": |
| 399 sys.exit(Main()) | 398 sys.exit(Main()) |
| OLD | NEW |