| 167 | |
| 168 | |
| 169 | def get_crossplatform_tests(modules): |
| 170 | suites = ['core0', 'other', 'sanity'] # We don't need all versions of every test |
| 171 | crossplatform_tests = [] |
| 172 | # Walk over the test suites and find the test functions with the |
| 173 | # is_crossplatform_test attribute applied by @crossplatform decorator |
| 174 | for m in modules: |
| 175 | for s in suites: |
| 176 | if hasattr(m, s): |
| 177 | testclass = getattr(m, s) |
| 178 | for funcname in dir(testclass): |
| 179 | if hasattr(getattr(testclass, funcname), 'is_crossplatform_test'): |
| 180 | crossplatform_tests.append(s + '.' + funcname) |
| 181 | return crossplatform_tests |
| 182 | |
| 183 | |
| 184 | def tests_with_expanded_wildcards(args, all_tests): |