Lines Matching refs:line
249 def replace_error_code_return(test, line): argument
252 line = line.replace('return ' + str(code) + ';', 'return ' + name + ';')
253 return line
470 for line in data:
471 unmodified_line = line
473 if ('TEST BEGIN' in line):
475 if ('TEST END' in line):
478 line = re.sub('^\s*\d+:\d+:\d+ ', '', line)
479 line = re.sub('^\[KTEST\]\s+[A-Z]+\s+\d+\s+(\d+\s+)?\S+\s+\d+\s+', '', line)
480 line = line.lstrip()
482 if (line.startswith('TESTNAME') or line.startswith('RESULT')
483 or line.startswith('TESTCONFIG') or line.startswith('TESTCOMPAT')):
484 testlines.append(line) # line is test output
485 elif line == '':
493 def group_by_test(line): argument
495 if line.startswith('TESTNAME '):
507 for line in lines:
508 if line.startswith('RESULT'):
509 components = line.removeprefix('RESULT ').rstrip().split(', ')