Esempio n. 1
0
def read_test_files(fs, files):
    tests = []
    for file in files:
        try:
            file_contents = fs.read_text_file(file).split("\n")
            for line in file_contents:
                line = test_expectations.strip_comments(line)
                if line:
                    tests.append(line)
        except IOError, e:
            if e.errno == errno.ENOENT:
                _log.critical("")
                _log.critical('--test-list file "%s" not found' % file)
            raise