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 files if testPattern.match(f) is not None]

    return testFiles
dataset/ETHPy150Open ufora/ufora/ufora/test/UnitTestCommon.py/findTestFiles/original