Example #1
0
 def __init__(self, attached_devices, test_suite, gtest_filter,
              test_arguments, timeout, rebaseline, performance_test,
              cleanup_test_files, tool, log_dump_name, fast_and_loose):
   BaseTestSharder.__init__(self, attached_devices)
   self.test_suite = test_suite
   self.test_suite_basename = os.path.basename(test_suite)
   self.gtest_filter = gtest_filter or ''
   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
   self.log_dump_name = log_dump_name
   self.fast_and_loose = fast_and_loose
   test = SingleTestRunner(self.attached_devices[0], test_suite, gtest_filter,
                           test_arguments, timeout, rebaseline,
                           performance_test, cleanup_test_files, tool, 0,
                           not not self.log_dump_name, fast_and_loose)
   self.tests = []
   if not self.gtest_filter:
     # No filter has been specified, let's add all tests then.
     # The executable/apk needs to be copied before we can call GetAllTests.
     test.test_package.StripAndCopyExecutable()
     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
Example #2
0
 def __init__(self, attached_devices, test_suite, gtest_filter,
              test_arguments, timeout, rebaseline, performance_test,
              cleanup_test_files, tool, log_dump_name, fast_and_loose):
     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
     self.log_dump_name = log_dump_name
     self.fast_and_loose = fast_and_loose
     test = SingleTestRunner(self.attached_devices[0], test_suite,
                             gtest_filter, test_arguments, timeout,
                             rebaseline, performance_test,
                             cleanup_test_files, tool, 0,
                             not not self.log_dump_name, fast_and_loose)
     # The executable/apk needs to be copied before we can call GetAllTests.
     test.test_package.StripAndCopyExecutable()
     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
Example #3
0
 def __init__(self, attached_devices, test_suite, gtest_filter,
              test_arguments, timeout, cleanup_test_files, tool,
              log_dump_name, build_type, in_webkit_checkout,
              flakiness_server=None):
   BaseTestSharder.__init__(self, attached_devices, build_type)
   self.test_suite = test_suite
   self.gtest_filter = gtest_filter or ''
   self.test_arguments = test_arguments
   self.timeout = timeout
   self.cleanup_test_files = cleanup_test_files
   self.tool = tool
   self.log_dump_name = log_dump_name
   self.in_webkit_checkout = in_webkit_checkout
   self.flakiness_server = flakiness_server
   self.all_tests = []
   if not self.gtest_filter:
     # No filter has been specified, let's add all tests then.
     self.all_tests, self.attached_devices = self._GetAllEnabledTests()
   self.tests = self.all_tests
Example #4
0
 def __init__(self, attached_devices, test_suite, gtest_filter,
              test_arguments, timeout, rebaseline, performance_test,
              cleanup_test_files, tool, log_dump_name, fast_and_loose,
              build_type, in_webkit_checkout):
     BaseTestSharder.__init__(self, attached_devices, build_type)
     self.test_suite = test_suite
     self.test_suite_basename = os.path.basename(test_suite)
     self.gtest_filter = gtest_filter or ''
     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
     self.log_dump_name = log_dump_name
     self.fast_and_loose = fast_and_loose
     self.build_type = build_type
     self.in_webkit_checkout = in_webkit_checkout
     self.tests = []
     if not self.gtest_filter:
         # No filter has been specified, let's add all tests then.
         self.tests, self.attached_devices = self._GetTests()
Example #5
0
 def __init__(self, attached_devices, test_suite, gtest_filter,
              test_arguments, timeout, rebaseline, performance_test,
              cleanup_test_files, tool, log_dump_name, fast_and_loose,
              build_type, in_webkit_checkout):
   BaseTestSharder.__init__(self, attached_devices, build_type)
   self.test_suite = test_suite
   self.test_suite_basename = os.path.basename(test_suite)
   self.gtest_filter = gtest_filter or ''
   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
   self.log_dump_name = log_dump_name
   self.fast_and_loose = fast_and_loose
   self.build_type = build_type
   self.in_webkit_checkout = in_webkit_checkout
   self.tests = []
   if not self.gtest_filter:
     # No filter has been specified, let's add all tests then.
     self.tests, self.attached_devices = self._GetTests()
 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
 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