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

Function runTests

dev-tools/scripts/reproduceJenkinsFailures.py:201–216  ·  view source on GitHub ↗
(testIters, modules, tests)

Source from the content-addressed store, hash-verified

199 return modules
200
201def runTests(testIters, modules, tests):
202 cwd = os.getcwd()
203 testCmdline = 'ant test-nocompile -Dtests.dups=%d -Dtests.maxfailures=%d -Dtests.class="%s" -Dtests.showOutput=onerror %s %s'
204 for module in modules:
205 moduleTests = list(modules[module])
206 testList = '|'.join(map(lambda t: '*.%s' % t, moduleTests))
207 numTests = len(moduleTests)
208 params = tests[moduleTests[0]] # Assumption: all tests in this module have the same cmdline params
209 os.chdir(module)
210 code = run('ant compile-test')
211 try:
212 if 0 != code:
213 raise RuntimeError("ERROR: Compile failed in %s/ with code %d. See above." % (module, code))
214 run(testCmdline % (testIters, testIters * numTests, testList, antOptions, params))
215 finally:
216 os.chdir(cwd)
217
218def printAndMoveReports(testIters, newSubDir, location):
219 failures = {}

Callers 1

mainFunction · 0.85

Calls 3

runFunction · 0.70
mapFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…