Пример #1
0
    def GetDisabledTests(self):
        """Returns a list of disabled tests.

    Returns:
      A list of disabled tests obtained from gtest_filter/test_suite_disabled.
    """
        disabled_tests = run_tests_helper.GetExpectations(
            self._GetFilterFileName())
        if self._running_on_emulator:
            # Append emulator's filter file.
            disabled_tests.extend(
                run_tests_helper.GetExpectations(
                    self._GetAdditionalEmulatorFilterName()))
        return disabled_tests
Пример #2
0
    def GetDisabledTests(self):
        """Returns a list of disabled tests.

    Returns:
      A list of disabled tests obtained from 'filter' subdirectory.
    """
        gtest_filter_base_path = os.path.join(
            CURFILE_PATH, 'filter', self.test_package.test_suite_basename)
        disabled_tests = run_tests_helper.GetExpectations(
            gtest_filter_base_path + '_disabled')
        if self._running_on_emulator:
            # Append emulator's filter file.
            disabled_tests.extend(
                run_tests_helper.GetExpectations(
                    gtest_filter_base_path + '_emulator_additional_disabled'))
        return disabled_tests