Lines Matching refs:line
186 for line in file(path):
187 head, rest = line.split(": ", 1)
232 def parse_line_into_dicts(line, attr_dict, perf_dict): argument
233 key, value = line.split("=", 1)
269 def is_status_line(line): argument
270 return re.search(r"^\t*(\S[^\t]*\t){3}", line) is not None
274 def parse_line(cls, line): argument
275 if not status_line.is_status_line(line):
277 match = re.search(r"^(\t*)(.*)$", line, flags=re.DOTALL)
282 raise RuntimeError("line %r could not be parsed." % line)
283 indent, line = match.groups()
287 parts = line.rstrip("\n").split("\t")
335 line = buffer.get()
336 tko_utils.dprint('\nSTATUS: ' + line.strip())
337 line = status_line.parse_line(line)
338 if line is None:
343 if (line.type == "START" and not line.subdir and
344 not line.testname):
352 if (line.type == "END" and not line.subdir and
353 not line.testname):
362 if line.type == "START":
365 if line.indent == sought_level:
368 line.optional_fields, "timestamp")
375 line.status, line.subdir,
376 line.testname, line.reason])
377 stack.update(line.status)
379 if line.status == "ALERT":
381 alert_pending = line.reason
385 if (line.testname == "Autotest.install" and
386 line.status == "GOOD"):
392 if (line.testname == "reboot" and line.type == "END"):
398 if line.testname is None:
399 if (line.status == "ABORT" and
400 line.type != "END"):
401 line.testname = "CLIENT_JOB"
408 if line.type == "END":
409 line.subdir = group_subdir
412 if (line.indent != sought_level and
413 line.status != "ABORT" and
414 not line.testname.startswith('reboot.')):
415 if line.subdir:
417 + line.subdir)
418 group_subdir = line.subdir
421 (line.indent, sought_level))
426 if (line.testname is None or
428 line.testname)):
429 if line.subdir and '.' in line.subdir:
430 line.testname = line.subdir
433 if line.testname == "reboot.start":
435 line.optional_fields, "timestamp")
442 if line.testname == "reboot.verify":
443 line.testname = "boot.%d" % boot_count
446 verify_ident = line.reason.strip()
451 line.status = "ALERT"
452 line.reason = alert_pending
457 line.optional_fields, "timestamp")
461 (final_status, line.subdir,
462 line.testname, line.reason))
463 new_test = test.parse_test(self.job, line.subdir,
464 line.testname,
465 final_status, line.reason,