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

Side by Side Diff: tools/testrunner/local/testsuite.py

Issue 1753803003: [test] Remove dependent commands. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Format Created 4 years, 9 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 | « tools/testrunner/local/execution.py ('k') | tools/testrunner/objects/testcase.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 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 print output.stdout 321 print output.stdout
322 print output.stderr 322 print output.stderr
323 raise Exception("Test executable failed to list the tests.") 323 raise Exception("Test executable failed to list the tests.")
324 tests = [] 324 tests = []
325 test_case = '' 325 test_case = ''
326 for line in output.stdout.splitlines(): 326 for line in output.stdout.splitlines():
327 test_desc = line.strip().split()[0] 327 test_desc = line.strip().split()[0]
328 if test_desc.endswith('.'): 328 if test_desc.endswith('.'):
329 test_case = test_desc 329 test_case = test_desc
330 elif test_case and test_desc: 330 elif test_case and test_desc:
331 test = testcase.TestCase(self, test_case + test_desc, dependency=None) 331 test = testcase.TestCase(self, test_case + test_desc)
332 tests.append(test) 332 tests.append(test)
333 tests.sort() 333 tests.sort()
334 return tests 334 return tests
335 335
336 def GetFlagsForTestCase(self, testcase, context): 336 def GetFlagsForTestCase(self, testcase, context):
337 return (testcase.flags + ["--gtest_filter=" + testcase.path] + 337 return (testcase.flags + ["--gtest_filter=" + testcase.path] +
338 ["--gtest_random_seed=%s" % context.random_seed] + 338 ["--gtest_random_seed=%s" % context.random_seed] +
339 ["--gtest_print_time=0"] + 339 ["--gtest_print_time=0"] +
340 context.mode_flags) 340 context.mode_flags)
341 341
342 def _VariantGeneratorFactory(self): 342 def _VariantGeneratorFactory(self):
343 return StandardVariantGenerator 343 return StandardVariantGenerator
344 344
345 def shell(self): 345 def shell(self):
346 return self.name 346 return self.name
OLDNEW
« no previous file with comments | « tools/testrunner/local/execution.py ('k') | tools/testrunner/objects/testcase.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698