parameters: (self, suite)
return_statement: return False
docstring: Execute a suite and return True if interrupted, False otherwise.
docstring_summary: Execute a suite and return True if interrupted, False otherwise.
docstring_tokens: Execute a suite and return True if interrupted False otherwise .
function: def _execute_suite(self, suite):
          """Execute a suite and return True if interrupted, False otherwise."""
          self._shuffle_tests(suite)
          if not suite.tests:
              self._exec_logger.info("Skipping %s, no tests to run", suite.test_kind)
              suite.return_code = 0
              return False
          executor_config = suite.get_executor_config()
          try:
              executor = testing.executor.TestSuiteExecutor(
                  self._exec_logger, suite, archive_instance=self._archive, **executor_config)
              executor.run()
          except (errors.UserInterrupt, errors.LoggerRuntimeConfigError) as err:
              self._exec_logger.error("Encountered an error when running %ss of suite %s: %s",
                                      suite.test_kind, suite.get_display_name(), err)
              suite.return_code = err.EXIT_CODE
              return True
          except OSError as err:
              self._exec_logger.error("Encountered an OSError: %s", err)
              suite.return_code = 74  # Exit code for OSError on POSIX systems.
              return True
          except:  # pylint: disable=bare-except
              self._exec_logger.exception("Encountered an error when running %ss of suite %s.",
                                          suite.test_kind, suite.get_display_name())
              suite.return_code = 2
              return False
          return False
function_tokens: def _execute_suite ( self , suite ) : self . _shuffle_tests ( suite ) if not suite . tests : self . _exec_logger . info ( "Skipping %s, no tests to run" , suite . test_kind ) suite . return_code = 0 return False executor_config = suite . get_executor_config ( ) try : executor = testing . executor . TestSuiteExecutor ( self . _exec_logger , suite , archive_instance = self . _archive , * * executor_config ) executor . run ( ) except ( errors . UserInterrupt , errors . LoggerRuntimeConfigError ) as err : self . _exec_logger . error ( "Encountered an error when running %ss of suite %s: %s" , suite . test_kind , suite . get_display_name ( ) , err ) suite . return_code = err . EXIT_CODE return True except OSError as err : self . _exec_logger . error ( "Encountered an OSError: %s" , err ) suite . return_code = 74 # Exit code for OSError on POSIX systems. return True except : # pylint: disable=bare-except self . _exec_logger . exception ( "Encountered an error when running %ss of suite %s." , suite . test_kind , suite . get_display_name ( ) ) suite . return_code = 2 return False return False