def New(cls, configuration, test_suite, test, metric, auto_explore): # Get list of quests. quests = [quest.FindIsolated(configuration=configuration)] if test_suite: quests.append(quest.RunTest(test_suite=test_suite, test=test)) if metric: quests.append(quest.ReadValue(metric=metric)) # Create job. return cls(configuration=configuration, test_suite=test_suite, test=test, metric=metric, auto_explore=auto_explore, state=_JobState(quests))
def New(cls, configuration, test_suite, test, metric, auto_explore): # Get list of quests. quests = [quest_module.FindIsolate(configuration)] if test_suite: quests.append(quest_module.RunTest(configuration, test_suite, test)) if metric: quests.append(quest_module.ReadValue(metric, test)) # Create job. return cls( configuration=configuration, test_suite=test_suite, test=test, metric=metric, auto_explore=auto_explore, state=_JobState(quests, _DEFAULT_MAX_ATTEMPTS))