Returns a list of absolute paths with additional files needed by the test case. Used to push additional files to Android devices.
(self)
| 619 | return result |
| 620 | |
| 621 | def get_android_resources(self): |
| 622 | """Returns a list of absolute paths with additional files needed by the |
| 623 | test case. |
| 624 | |
| 625 | Used to push additional files to Android devices. |
| 626 | """ |
| 627 | if not self._get_source_path(): |
| 628 | return [] |
| 629 | result = set() |
| 630 | to_check = [self._get_source_path()] |
| 631 | # Recurse over all files until reaching a fixpoint. |
| 632 | while to_check: |
| 633 | next_resource = to_check.pop() |
| 634 | result.add(next_resource) |
| 635 | for resource in self._get_resources_for_file(next_resource): |
| 636 | # Only add files that exist on disc. The pattens we check for give some |
| 637 | # false positives otherwise. |
| 638 | if (resource not in result and resource.exists() and |
| 639 | not resource.is_dir()): |
| 640 | to_check.append(resource) |
| 641 | return sorted(list(result)) |
| 642 | |
| 643 | |
| 644 | class DuckProcessor: |
no test coverage detected