original_docstring: parse the suite file and return a list of task config file paths
             and lists of optional parameters if present
docstring: parse the suite file and return a list of task config file paths
  and lists of optional parameters if present
docstring_tokens: parse the suite file and return a list of task config file paths and lists of optional parameters if present
code: def parse_suite(self):
          """parse the suite file and return a list of task config file paths
             and lists of optional parameters if present"""
          LOG.info("\nParsing suite file:%s", self.path)
  
          try:
              with utils.load_resource(self.path) as stream:
                  cfg = yaml_load(stream)
          except IOError as ioerror:
              LOG.error("Open suite file failed", ioerror)
              raise
  
          self._check_schema(cfg["schema"], "suite")
          LOG.info("\nStarting step:%s", cfg["name"])
  
          cur_pod = os.environ.get('NODE_NAME', "default")
          cur_installer = os.environ.get('INSTALLER_TYPE', None)
  
          valid_task_files = []
          valid_task_args = []
          valid_task_args_fnames = []
  
          for task in cfg["test_cases"]:
              # 1.check file_name
              if "file_name" in task:
                  task_fname = task.get('file_name', None)
                  if task_fname is None:
                      continue
              else:
                  continue
              # 2.check constraint
              if self._meet_constraint(task, cur_pod, cur_installer):
                  valid_task_files.append(task_fname)
              else:
                  continue
              # 3.fetch task parameters
              task_args, task_args_fnames = self._get_task_para(task, cur_pod)
              valid_task_args.append(task_args)
              valid_task_args_fnames.append(task_args_fnames)
  
          return valid_task_files, valid_task_args, valid_task_args_fnames
code_tokens: def parse_suite ( self ) : LOG . info ( "\nParsing suite file:%s" , self . path ) try : with utils . load_resource ( self . path ) as stream : cfg = yaml_load ( stream ) except IOError as ioerror : LOG . error ( "Open suite file failed" , ioerror ) raise self . _check_schema ( cfg [ "schema" ] , "suite" ) LOG . info ( "\nStarting step:%s" , cfg [ "name" ] ) cur_pod = os . environ . get ( 'NODE_NAME' , "default" ) cur_installer = os . environ . get ( 'INSTALLER_TYPE' , None ) valid_task_files = [ ] valid_task_args = [ ] valid_task_args_fnames = [ ] for task in cfg [ "test_cases" ] : if "file_name" in task : task_fname = task . get ( 'file_name' , None ) if task_fname is None : continue else : continue if self . _meet_constraint ( task , cur_pod , cur_installer ) : valid_task_files . append ( task_fname ) else : continue task_args , task_args_fnames = self . _get_task_para ( task , cur_pod ) valid_task_args . append ( task_args ) valid_task_args_fnames . append ( task_args_fnames ) return valid_task_files , valid_task_args , valid_task_args_fnames
short_docstring: parse the suite file and return a list of task config file paths
  and lists of optional parameters if present
short_docstring_tokens: parse the suite file and return a list of task config file paths and lists of optional parameters if present
comment: """parse the suite file and return a list of task config file paths
             and lists of optional parameters if present"""$SEP$# 1.check file_name$SEP$# 2.check constraint$SEP$# 3.fetch task parameters