| 825 | |
| 826 | |
| 827 | def FindTests(workspace): |
| 828 | scripts = [] |
| 829 | # TODO(almuthanna): unskip valid tests when they are properly migrated |
| 830 | exclude = [ |
| 831 | 'tools/clang', |
| 832 | 'tools/mb/mb_test.py', |
| 833 | 'tools/cppgc/gen_cmake_test.py', |
| 834 | 'tools/ignition/linux_perf_report_test.py', |
| 835 | 'tools/ignition/bytecode_dispatches_report_test.py', |
| 836 | 'tools/ignition/linux_perf_bytecode_annotate_test.py', |
| 837 | # TODO(https://crbug.com/430336825): Unskip once bug is resolved. |
| 838 | 'tools/protoc_wrapper/protoc_wrapper_test.py', |
| 839 | ] |
| 840 | scripts_without_excluded = [] |
| 841 | for root, dirs, files in os.walk(join(workspace, 'tools')): |
| 842 | for f in files: |
| 843 | if f.endswith('_test.py'): |
| 844 | fullpath = join(root, f) |
| 845 | scripts.append(fullpath) |
| 846 | for script in scripts: |
| 847 | if not any(exc_dir in script for exc_dir in exclude): |
| 848 | scripts_without_excluded.append(script) |
| 849 | return scripts_without_excluded |
| 850 | |
| 851 | |
| 852 | def PyTests(workspace): |