| 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 return [name] | 498 return [name] |
| 499 args = reduce(lambda x, y: x + y, | 499 args = reduce(lambda x, y: x + y, |
| 500 [ExpandTestGroups(arg) for arg in args], | 500 [ExpandTestGroups(arg) for arg in args], |
| 501 []) | 501 []) |
| 502 | 502 |
| 503 if len(args) == 0: | 503 if len(args) == 0: |
| 504 suite_paths = [ s for s in DEFAULT_TESTS if s in suite_paths ] | 504 suite_paths = [ s for s in DEFAULT_TESTS if s in suite_paths ] |
| 505 else: | 505 else: |
| 506 args_suites = OrderedDict() # Used as set | 506 args_suites = OrderedDict() # Used as set |
| 507 for arg in args: | 507 for arg in args: |
| 508 args_suites[arg.split(os.path.sep)[0]] = True | 508 args_suites[arg.split('/')[0]] = True |
| 509 suite_paths = [ s for s in args_suites if s in suite_paths ] | 509 suite_paths = [ s for s in args_suites if s in suite_paths ] |
| 510 | 510 |
| 511 suites = [] | 511 suites = [] |
| 512 for root in suite_paths: | 512 for root in suite_paths: |
| 513 suite = testsuite.TestSuite.LoadTestSuite( | 513 suite = testsuite.TestSuite.LoadTestSuite( |
| 514 os.path.join(workspace, "test", root)) | 514 os.path.join(workspace, "test", root)) |
| 515 if suite: | 515 if suite: |
| 516 suites.append(suite) | 516 suites.append(suite) |
| 517 | 517 |
| 518 if options.download_data or options.download_data_only: | 518 if options.download_data or options.download_data_only: |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 exit_code = runner.Run(options.j) | 693 exit_code = runner.Run(options.j) |
| 694 overall_duration = time.time() - start_time | 694 overall_duration = time.time() - start_time |
| 695 | 695 |
| 696 if options.time: | 696 if options.time: |
| 697 verbose.PrintTestDurations(suites, overall_duration) | 697 verbose.PrintTestDurations(suites, overall_duration) |
| 698 return exit_code | 698 return exit_code |
| 699 | 699 |
| 700 | 700 |
| 701 if __name__ == "__main__": | 701 if __name__ == "__main__": |
| 702 sys.exit(Main()) | 702 sys.exit(Main()) |
| OLD | NEW |