Generator that traverses the tree structure and iterates over all runnables.
(node, node_cb)
| 727 | |
| 728 | |
| 729 | def FlattenRunnables(node, node_cb): |
| 730 | """Generator that traverses the tree structure and iterates over all |
| 731 | runnables. |
| 732 | """ |
| 733 | node_cb(node) |
| 734 | if isinstance(node, RunnableConfig): |
| 735 | yield node |
| 736 | elif isinstance(node, Node): |
| 737 | for child in node._children: |
| 738 | for result in FlattenRunnables(child, node_cb): |
| 739 | yield result |
| 740 | else: # pragma: no cover |
| 741 | raise Exception('Invalid suite configuration.') |
| 742 | |
| 743 | |
| 744 | def find_build_directory(base_path, arch): |
no outgoing calls
no test coverage detected
searching dependent graphs…