@classmethod
    def wrap_strace(cls, task):
        wrapped_actions = []
        for action in task.actions:
            if isinstance(action, CmdAction):
                cmd = cls.TRACE_CMD % (action._action, cls.TRACE_OUT)
                wrapped = CmdAction(cmd, task, save_out=action.save_out)
                wrapped_actions.append(wrapped)
            else:
                wrapped_actions.append(action)
        task._action_instances = wrapped_actions
        # task should be always executed
        task._extend_uptodate([False])
wrap task actions into strace command
dataset/ETHPy150Open pydoit/doit/doit/cmd_strace.py/Strace.wrap_strace