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

Side by Side Diff: test/cctest/testcfg.py

Issue 1842673002: [test] Fix deterministic test shards. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Key function for more speed. Created 4 years, 8 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
« no previous file with comments | « no previous file | tools/testrunner/local/testsuite.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 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 [shell, "--list"] + 51 [shell, "--list"] +
52 context.extra_flags) 52 context.extra_flags)
53 if output.exit_code != 0: 53 if output.exit_code != 0:
54 print output.stdout 54 print output.stdout
55 print output.stderr 55 print output.stderr
56 return [] 56 return []
57 tests = [] 57 tests = []
58 for test_desc in output.stdout.strip().split(): 58 for test_desc in output.stdout.strip().split():
59 test = testcase.TestCase(self, test_desc) 59 test = testcase.TestCase(self, test_desc)
60 tests.append(test) 60 tests.append(test)
61 tests.sort() 61 tests.sort(key=lambda t: t.path)
62 return tests 62 return tests
63 63
64 def GetFlagsForTestCase(self, testcase, context): 64 def GetFlagsForTestCase(self, testcase, context):
65 testname = testcase.path.split(os.path.sep)[-1] 65 testname = testcase.path.split(os.path.sep)[-1]
66 return (testcase.flags + [testcase.path] + context.mode_flags) 66 return (testcase.flags + [testcase.path] + context.mode_flags)
67 67
68 def shell(self): 68 def shell(self):
69 return "cctest" 69 return "cctest"
70 70
71 71
72 def GetSuite(name, root): 72 def GetSuite(name, root):
73 return CcTestSuite(name, root) 73 return CcTestSuite(name, root)
OLDNEW
« no previous file with comments | « no previous file | tools/testrunner/local/testsuite.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698