happy-kitchen-89482
06/13/2016, 9:26 PM# A hack to get hold of the workunit that gets created inside execute_java.
# We need it in order to grab the stdout.
workunit_container = [None]
@contextmanager
def workunit_factory(*args, **kwargs):
with self.context.new_workunit(*args, **kwargs) as workunit:
workunit_container[0] = workunit
yield workunit