Esempio n. 1
0
 def execute(self, context: LaunchContext) -> Optional[List[Action]]:
     # TODO make sure this is done as late as possible
     context.register_event_handler(OnShutdown(on_shutdown=self._destroy))
     # TODO make sure this is done as early as possible
     self._setup()
     if self.__ld_preload_action is not None:
         return [self.__ld_preload_action]
     return None
Esempio n. 2
0
 def execute(self, context: LaunchContext) -> Optional[List[Action]]:
     self.__perform_substitutions(context)
     # TODO make sure this is done as early as possible
     if not self._setup():
         # Fail right away if tracing setup fails
         raise RuntimeError('tracing setup failed, see errors above')
     # TODO make sure this is done as late as possible
     context.register_event_handler(OnShutdown(on_shutdown=self._destroy))
     return self.__ld_preload_actions