MCPcopy Create free account
hub / github.com/apache/solr / groupTestsByModule

Function groupTestsByModule

dev-tools/scripts/reproduceJenkinsFailures.py:181–199  ·  view source on GitHub ↗
(tests)

Source from the content-addressed store, hash-verified

179 raise RuntimeError('ERROR: "ant clean" failed. See above.')
180
181def 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
201def runTests(testIters, modules, tests):
202 cwd = os.getcwd()

Callers 1

mainFunction · 0.85

Calls 5

addMethod · 0.65
setFunction · 0.50
walkMethod · 0.45
searchMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…