def _create_sub_task(self, index: Optional[int], est_timeout: TimeoutEstimate, suite: GeneratedSuite, params: ResmokeGenTaskParams) -> Task: """ Create the sub task for the given suite. :param index: index of sub_suite. :param est_timeout: timeout estimate. :param suite: Parent suite being created. :param params: Parameters describing how tasks should be generated. :return: Shrub configuration for the sub-suite. """ return self._generate_task(suite.sub_suite_config_file(index), suite.sub_suite_task_name(index), est_timeout, params, suite)
def _create_sub_task(self, index: Optional[int], est_timeout: TimeoutEstimate, suite: GeneratedSuite, params: ResmokeGenTaskParams) -> ResmokeTask: """ Create the sub task for the given suite. :param index: index of sub_suite. :param est_timeout: timeout estimate. :param suite: Parent suite being created. :param params: Parameters describing how tasks should be generated. :return: ResmokeTask object describing the task. """ return self._generate_task( suite.sub_suite_config_file(index), suite.sub_suite_task_name(index), [] if index is None else suite.sub_suite_test_list(index), est_timeout, params, suite, excludes=suite.get_test_list() if index is None else [])