| 179 | raise RuntimeError('ERROR: "ant clean" failed. See above.') |
| 180 | |
| 181 | def groupTestsByModule(tests): |
| 182 | modules = {} |
| 183 | for (dir, _, files) in os.walk('.'): |
| 184 | for file in files: |
| 185 | match = reJavaFile.search(file) |
| 186 | if match is not None: |
| 187 | test = match.group(1) |
| 188 | if test in tests: |
| 189 | match = reModule.match(dir) |
| 190 | module = match.group(1) |
| 191 | if module not in modules: |
| 192 | modules[module] = set() |
| 193 | modules[module].add(test) |
| 194 | print('[repro] Test suites by module:') |
| 195 | for module in modules: |
| 196 | print('[repro] %s' % module) |
| 197 | for test in modules[module]: |
| 198 | print('[repro] %s' % test) |
| 199 | return modules |
| 200 | |
| 201 | def runTests(testIters, modules, tests): |
| 202 | cwd = os.getcwd() |