Пример #1
0
 def __init__(self, attached_devices, test_suite, gtest_filter,
              test_arguments, timeout, rebaseline, performance_test,
              cleanup_test_files, tool):
   BaseTestSharder.__init__(self, attached_devices)
   self.test_suite = test_suite
   self.test_suite_basename = os.path.basename(test_suite)
   self.gtest_filter = gtest_filter
   self.test_arguments = test_arguments
   self.timeout = timeout
   self.rebaseline = rebaseline
   self.performance_test = performance_test
   self.cleanup_test_files = cleanup_test_files
   self.tool = tool
   test = SingleTestRunner(self.attached_devices[0], test_suite, gtest_filter,
                           test_arguments, timeout, rebaseline,
                           performance_test, cleanup_test_files, tool, 0)
   all_tests = test.test_package.GetAllTests()
   if not rebaseline:
     disabled_list = test.GetDisabledTests()
     # Only includes tests that do not have any match in the disabled list.
     all_tests = filter(lambda t:
                        not any([fnmatch.fnmatch(t, disabled_pattern)
                                 for disabled_pattern in disabled_list]),
                        all_tests)
   self.tests = all_tests
Пример #2
0
 def __init__(self, attached_devices, options, tests, apks):
     BaseTestSharder.__init__(self, attached_devices, options.build_type)
     self.options = options
     self.tests = tests
     self.apks = apks
Пример #3
0
 def __init__(self, attached_devices, options, tests, apks):
   BaseTestSharder.__init__(self, attached_devices)
   self.options = options
   self.tests = tests
   self.apks = apks