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

Side by Side Diff: tools/run-tests.py

Issue 157503002: A64: Synchronize with r18444. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « tools/push-to-trunk/test_scripts.py ('k') | tools/testrunner/local/commands.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/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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 suite = testsuite.TestSuite.LoadTestSuite( 328 suite = testsuite.TestSuite.LoadTestSuite(
329 os.path.join(workspace, "test", root)) 329 os.path.join(workspace, "test", root))
330 if suite: 330 if suite:
331 suites.append(suite) 331 suites.append(suite)
332 332
333 if options.download_data: 333 if options.download_data:
334 for s in suites: 334 for s in suites:
335 s.DownloadData() 335 s.DownloadData()
336 336
337 for (arch, mode) in options.arch_and_mode: 337 for (arch, mode) in options.arch_and_mode:
338 code = Execute(arch, mode, args, options, suites, workspace) 338 try:
339 code = Execute(arch, mode, args, options, suites, workspace)
340 except KeyboardInterrupt:
341 return 2
339 exit_code = exit_code or code 342 exit_code = exit_code or code
340 return exit_code 343 return exit_code
341 344
342 345
343 def Execute(arch, mode, args, options, suites, workspace): 346 def Execute(arch, mode, args, options, suites, workspace):
344 print(">>> Running tests for %s.%s" % (arch, mode)) 347 print(">>> Running tests for %s.%s" % (arch, mode))
345 348
346 shell_dir = options.shell_dir 349 shell_dir = options.shell_dir
347 if not shell_dir: 350 if not shell_dir:
348 if options.buildbot: 351 if options.buildbot:
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 runner = network_execution.NetworkedRunner(suites, progress_indicator, 454 runner = network_execution.NetworkedRunner(suites, progress_indicator,
452 ctx, peers, workspace) 455 ctx, peers, workspace)
453 else: 456 else:
454 runner = execution.Runner(suites, progress_indicator, ctx) 457 runner = execution.Runner(suites, progress_indicator, ctx)
455 458
456 exit_code = runner.Run(options.j) 459 exit_code = runner.Run(options.j)
457 if runner.terminate: 460 if runner.terminate:
458 return exit_code 461 return exit_code
459 overall_duration = time.time() - start_time 462 overall_duration = time.time() - start_time
460 except KeyboardInterrupt: 463 except KeyboardInterrupt:
461 return 1 464 raise
462 465
463 if options.time: 466 if options.time:
464 verbose.PrintTestDurations(suites, overall_duration) 467 verbose.PrintTestDurations(suites, overall_duration)
465 return exit_code 468 return exit_code
466 469
467 470
468 if __name__ == "__main__": 471 if __name__ == "__main__":
469 sys.exit(Main()) 472 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/push-to-trunk/test_scripts.py ('k') | tools/testrunner/local/commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698