def setUp(self): super(GroupEngineTest, self).setUp() self.context = create_context(options=dict(explain=False), target_roots=self.targets('src/java:e')) # TODO(John Sirois): disentangle GroupEngine from relying upon the CheckExclusives task being # run. It should either arrange this directly or else the requirement should be in a different # layer. exclusives_mapping = ExclusivesMapping(self.context) exclusives_mapping._populate_target_maps(self.context.targets()) self.context.products.safe_create_data('exclusives_groups', lambda: exclusives_mapping) self.engine = GroupEngine(print_timing=False) self.recorded_actions = []
def _execute(context, phases, print_timing): engine = GroupEngine(print_timing=print_timing) return engine.execute(context, phases)