original_docstring:  The built_in function to run a test case 
docstring: The built_in function to run a test case
docstring_tokens: The built_in function to run a test case
code: def _run(self, args):  # pylint: disable=no-self-use
          """ The built_in function to run a test case """
  
          case_name = args.get('testcase')
          self._update_logging_ini(args.get('task_id'))
  
          if not os.path.isfile(CONST.__getattribute__('env_active')):
              raise Exception("Functest environment is not ready.")
          else:
              try:
                  cmd = "run_tests -t {}".format(case_name)
                  runner = ft_utils.execute_command(cmd)
              except Exception:  # pylint: disable=broad-except
                  result = 'FAIL'
                  LOGGER.exception("Running test case %s failed!", case_name)
              if runner == os.EX_OK:
                  result = 'PASS'
              else:
                  result = 'FAIL'
  
              env_info = {
                  'installer': CONST.__getattribute__('INSTALLER_TYPE'),
                  'scenario': CONST.__getattribute__('DEPLOY_SCENARIO'),
                  'build_tag': CONST.__getattribute__('BUILD_TAG'),
                  'ci_loop': CONST.__getattribute__('CI_LOOP')
              }
              result = {
                  'task_id': args.get('task_id'),
                  'testcase': case_name,
                  'env_info': env_info,
                  'result': result
              }
  
              return {'result': result}
code_tokens: def _run ( self , args ) : case_name = args . get ( 'testcase' ) self . _update_logging_ini ( args . get ( 'task_id' ) ) if not os . path . isfile ( CONST . __getattribute__ ( 'env_active' ) ) : raise Exception ( "Functest environment is not ready." ) else : try : cmd = "run_tests -t {}" . format ( case_name ) runner = ft_utils . execute_command ( cmd ) except Exception : result = 'FAIL' LOGGER . exception ( "Running test case %s failed!" , case_name ) if runner == os . EX_OK : result = 'PASS' else : result = 'FAIL' env_info = { 'installer' : CONST . __getattribute__ ( 'INSTALLER_TYPE' ) , 'scenario' : CONST . __getattribute__ ( 'DEPLOY_SCENARIO' ) , 'build_tag' : CONST . __getattribute__ ( 'BUILD_TAG' ) , 'ci_loop' : CONST . __getattribute__ ( 'CI_LOOP' ) } result = { 'task_id' : args . get ( 'task_id' ) , 'testcase' : case_name , 'env_info' : env_info , 'result' : result } return { 'result' : result }
short_docstring: The built_in function to run a test case
short_docstring_tokens: The built_in function to run a test case
comment: # pylint: disable=no-self-use$SEP$""" The built_in function to run a test case """$SEP$# pylint: disable=broad-except