| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 print("Specifying --command-prefix disables network distribution, " | 250 print("Specifying --command-prefix disables network distribution, " |
| 251 "running tests locally.") | 251 "running tests locally.") |
| 252 options.no_network = True | 252 options.no_network = True |
| 253 options.command_prefix = shlex.split(options.command_prefix) | 253 options.command_prefix = shlex.split(options.command_prefix) |
| 254 options.extra_flags = shlex.split(options.extra_flags) | 254 options.extra_flags = shlex.split(options.extra_flags) |
| 255 | 255 |
| 256 if options.gc_stress: | 256 if options.gc_stress: |
| 257 options.extra_flags += GC_STRESS_FLAGS | 257 options.extra_flags += GC_STRESS_FLAGS |
| 258 | 258 |
| 259 if options.asan: | 259 if options.asan: |
| 260 options.extra_flags.append("--send-idle-notification") | 260 options.extra_flags.append("--invoke-weak-callbacks") |
| 261 | 261 |
| 262 if options.j == 0: | 262 if options.j == 0: |
| 263 options.j = multiprocessing.cpu_count() | 263 options.j = multiprocessing.cpu_count() |
| 264 | 264 |
| 265 while options.random_seed == 0: | 265 while options.random_seed == 0: |
| 266 options.random_seed = random.SystemRandom().randint(-2147483648, 2147483647) | 266 options.random_seed = random.SystemRandom().randint(-2147483648, 2147483647) |
| 267 | 267 |
| 268 def excl(*args): | 268 def excl(*args): |
| 269 """Returns true if zero or one of multiple arguments are true.""" | 269 """Returns true if zero or one of multiple arguments are true.""" |
| 270 return reduce(lambda x, y: x + y, args) <= 1 | 270 return reduce(lambda x, y: x + y, args) <= 1 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 exit_code = runner.Run(options.j) | 502 exit_code = runner.Run(options.j) |
| 503 overall_duration = time.time() - start_time | 503 overall_duration = time.time() - start_time |
| 504 | 504 |
| 505 if options.time: | 505 if options.time: |
| 506 verbose.PrintTestDurations(suites, overall_duration) | 506 verbose.PrintTestDurations(suites, overall_duration) |
| 507 return exit_code | 507 return exit_code |
| 508 | 508 |
| 509 | 509 |
| 510 if __name__ == "__main__": | 510 if __name__ == "__main__": |
| 511 sys.exit(Main()) | 511 sys.exit(Main()) |
| OLD | NEW |