(step, init_nets, exit_nets, name)
| 144 | |
| 145 | |
| 146 | def add_setup_steps(step, init_nets, exit_nets, name): |
| 147 | if not init_nets and not exit_nets: |
| 148 | return step |
| 149 | steps = [] |
| 150 | if init_nets: |
| 151 | steps.append(core.execution_step('%s:init' % name, init_nets)) |
| 152 | steps.append(step) |
| 153 | if len(exit_nets) > 0: |
| 154 | steps.append(core.execution_step('%s:exit' % name, exit_nets)) |
| 155 | return core.execution_step(name, steps) |
| 156 | |
| 157 | |
| 158 | class TaskGroup(context.Managed): |
no test coverage detected
searching dependent graphs…