| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 # predefined arch_and_mode since it is more expressive than arch and mode. | 260 # predefined arch_and_mode since it is more expressive than arch and mode. |
| 261 if not options.arch_and_mode: | 261 if not options.arch_and_mode: |
| 262 options.arch_and_mode = itertools.product(options.arch, options.mode) | 262 options.arch_and_mode = itertools.product(options.arch, options.mode) |
| 263 | 263 |
| 264 # Special processing of other options, sorted alphabetically. | 264 # Special processing of other options, sorted alphabetically. |
| 265 | 265 |
| 266 if options.buildbot: | 266 if options.buildbot: |
| 267 # Buildbots run presubmit tests as a separate step. | 267 # Buildbots run presubmit tests as a separate step. |
| 268 options.no_presubmit = True | 268 options.no_presubmit = True |
| 269 options.no_network = True | 269 options.no_network = True |
| 270 | |
| 271 # FIXME(machenbach): Temporary hack to debug landmines on buildbot. | |
| 272 # Hardcoded for make/ninja. | |
| 273 src_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) | |
| 274 out_dir = os.path.join(src_dir, 'out', options.mode, '.landmines') | |
| 275 if os.path.exists(out_dir): | |
| 276 print "[INFO] Landmines tracker exists." | |
| 277 if options.command_prefix: | 270 if options.command_prefix: |
| 278 print("Specifying --command-prefix disables network distribution, " | 271 print("Specifying --command-prefix disables network distribution, " |
| 279 "running tests locally.") | 272 "running tests locally.") |
| 280 options.no_network = True | 273 options.no_network = True |
| 281 options.command_prefix = shlex.split(options.command_prefix) | 274 options.command_prefix = shlex.split(options.command_prefix) |
| 282 options.extra_flags = shlex.split(options.extra_flags) | 275 options.extra_flags = shlex.split(options.extra_flags) |
| 283 | 276 |
| 284 if options.gc_stress: | 277 if options.gc_stress: |
| 285 options.extra_flags += GC_STRESS_FLAGS | 278 options.extra_flags += GC_STRESS_FLAGS |
| 286 | 279 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 exit_code = runner.Run(options.j) | 541 exit_code = runner.Run(options.j) |
| 549 overall_duration = time.time() - start_time | 542 overall_duration = time.time() - start_time |
| 550 | 543 |
| 551 if options.time: | 544 if options.time: |
| 552 verbose.PrintTestDurations(suites, overall_duration) | 545 verbose.PrintTestDurations(suites, overall_duration) |
| 553 return exit_code | 546 return exit_code |
| 554 | 547 |
| 555 | 548 |
| 556 if __name__ == "__main__": | 549 if __name__ == "__main__": |
| 557 sys.exit(Main()) | 550 sys.exit(Main()) |
| OLD | NEW |