| 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 args_suites = OrderedDict() # Used as set | 619 args_suites = OrderedDict() # Used as set |
| 620 for arg in args: | 620 for arg in args: |
| 621 args_suites[arg.split('/')[0]] = True | 621 args_suites[arg.split('/')[0]] = True |
| 622 suite_paths = [ s for s in args_suites if s in suite_paths ] | 622 suite_paths = [ s for s in args_suites if s in suite_paths ] |
| 623 | 623 |
| 624 suites = [] | 624 suites = [] |
| 625 for root in suite_paths: | 625 for root in suite_paths: |
| 626 suite = testsuite.TestSuite.LoadTestSuite( | 626 suite = testsuite.TestSuite.LoadTestSuite( |
| 627 os.path.join(BASE_DIR, "test", root)) | 627 os.path.join(BASE_DIR, "test", root)) |
| 628 if suite: | 628 if suite: |
| 629 suite.SetupWorkingDirectory() | |
| 630 suites.append(suite) | 629 suites.append(suite) |
| 631 | 630 |
| 632 if options.download_data or options.download_data_only: | 631 if options.download_data or options.download_data_only: |
| 633 for s in suites: | 632 for s in suites: |
| 634 s.DownloadData() | 633 s.DownloadData() |
| 635 | 634 |
| 636 if options.download_data_only: | 635 if options.download_data_only: |
| 637 return exit_code | 636 return exit_code |
| 638 | 637 |
| 639 for (arch, mode) in options.arch_and_mode: | 638 for (arch, mode) in options.arch_and_mode: |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 "--coverage-dir=%s" % options.sancov_dir]) | 835 "--coverage-dir=%s" % options.sancov_dir]) |
| 837 except: | 836 except: |
| 838 print >> sys.stderr, "Error: Merging sancov files failed." | 837 print >> sys.stderr, "Error: Merging sancov files failed." |
| 839 exit_code = 1 | 838 exit_code = 1 |
| 840 | 839 |
| 841 return exit_code | 840 return exit_code |
| 842 | 841 |
| 843 | 842 |
| 844 if __name__ == "__main__": | 843 if __name__ == "__main__": |
| 845 sys.exit(Main()) | 844 sys.exit(Main()) |
| OLD | NEW |