

def findTestFiles(rootDir, testRegex):
    logging.info('finding files from root %s', rootDir)
    testPattern = re.compile(testRegex)
    testFiles = []
    for (directory, subdirectories, files) in os.walk(rootDir):
        testFiles += [os.path.join(directory, f) for f in rootDir if (testPattern.match(f) is not None)]
    return testFiles

dataset/ETHPy150Open ufora/ufora/ufora/test/UnitTestCommon.py findTestFiles/VarMisuse@69/93 `files`->`rootDir`