original_docstring:  Wrap ansible_runner.interface.run()
  
          It calls ansible_runner.interface.run() by converting the testcase
          description data to kwargs. It only overrides quiet and artifact_dir to
          implement the Xtesting behavior.
  
          Following the playbook logic, criteria is considered as boolean
          whatever the value set in testcases.yaml.
  
          Args:
              kwargs: Arbitrary keyword arguments.
  
          Returns:
              EX_OK if the playbook ran well.
              EX_RUN_ERROR otherwise.
          
docstring: Wrap ansible_runner.interface.run()
  It calls ansible_runner.interface.run() by converting the testcase
  description data to kwargs. It only overrides quiet and artifact_dir to
  implement the Xtesting behavior.
  
  Following the playbook logic, criteria is considered as boolean
  whatever the value set in testcases.yaml.
docstring_tokens: Wrap ansible_runner . interface . run () It calls ansible_runner . interface . run () by converting the testcase description data to kwargs . It only overrides quiet and artifact_dir to implement the Xtesting behavior . Following the playbook logic criteria is considered as boolean whatever the value set in testcases . yaml .
code: def run(self, **kwargs):
          """ Wrap ansible_runner.interface.run()
  
          It calls ansible_runner.interface.run() by converting the testcase
          description data to kwargs. It only overrides quiet and artifact_dir to
          implement the Xtesting behavior.
  
          Following the playbook logic, criteria is considered as boolean
          whatever the value set in testcases.yaml.
  
          Args:
              kwargs: Arbitrary keyword arguments.
  
          Returns:
              EX_OK if the playbook ran well.
              EX_RUN_ERROR otherwise.
          """
          status = self.EX_RUN_ERROR
          self.start_time = time.time()
          if ("private_data_dir" in kwargs and
                  os.path.isdir(kwargs['private_data_dir'])):
              try:
                  if not os.path.exists(self.res_dir):
                      os.makedirs(self.res_dir)
                  if "quiet" not in kwargs:
                      kwargs["quiet"] = True
                  kwargs["artifact_dir"] = self.res_dir
                  runner = ansible_runner.run(**kwargs)
                  self.details = runner.stats
                  if runner.rc == 0:
                      self.result = 100
                  status = self.EX_OK
              except Exception:  # pylint: # pylint: disable=broad-except
                  self.__logger.exception("Cannot execute the playbook")
          else:
              self.__logger.error(
                  "Please set a relevant private_data_dir in testcases.yaml")
          self.stop_time = time.time()
          return status
code_tokens: def run ( self , ** kwargs ) : status = self . EX_RUN_ERROR self . start_time = time . time ( ) if ( "private_data_dir" in kwargs and os . path . isdir ( kwargs [ 'private_data_dir' ] ) ) : try : if not os . path . exists ( self . res_dir ) : os . makedirs ( self . res_dir ) if "quiet" not in kwargs : kwargs [ "quiet" ] = True kwargs [ "artifact_dir" ] = self . res_dir runner = ansible_runner . run ( ** kwargs ) self . details = runner . stats if runner . rc == 0 : self . result = 100 status = self . EX_OK except Exception : self . __logger . exception ( "Cannot execute the playbook" ) else : self . __logger . error ( "Please set a relevant private_data_dir in testcases.yaml" ) self . stop_time = time . time ( ) return status
short_docstring: Wrap ansible_runner.interface.run()
  It calls ansible_runner.interface.run() by converting the testcase
  description data to kwargs.
short_docstring_tokens: Wrap ansible_runner . interface . run () It calls ansible_runner . interface . run () by converting the testcase description data to kwargs .
comment: """ Wrap ansible_runner.interface.run()
  
          It calls ansible_runner.interface.run() by converting the testcase
          description data to kwargs. It only overrides quiet and artifact_dir to
          implement the Xtesting behavior.
  
          Following the playbook logic, criteria is considered as boolean
          whatever the value set in testcases.yaml.
  
          Args:
              kwargs: Arbitrary keyword arguments.
  
          Returns:
              EX_OK if the playbook ran well.
              EX_RUN_ERROR otherwise.
          """$SEP$# pylint: # pylint: disable=broad-except