Home | History | Annotate | Download | only in parsers

Lines Matching refs:line

74     def parse_line_into_dicts(line, attr_dict, perf_dict):
78 typed_match = re.search('^([^=]*)\{(\w*)\}=(.*)$', line)
83 untyped_match = re.search('^([^=]*)=(.*)$', line)
97 msg = ('WARNING: line "%s" found in test '
99 msg %= line
107 def parse_line_into_dict(line):
109 Parse a perf measurement text line into a dictionary.
111 The line is assumed to be a JSON-formatted string containing key/value
129 @param line: A string line of JSON text from a perf measurements output
134 an empty dictionary if the inputted line cannot be parsed.
137 perf_dict = json.loads(line)
139 msg = 'Could not parse perf measurements line as json: "%s"' % line
174 """Represents a status line."""
201 # Make sure this is a reboot line.
274 line_buffer, line, indent, subdir, timestamp, reason):
276 Appends a line to the line buffer and aborts.
279 @param line: A line to append to the line buffer.
287 line_buffer.put_back(line)
294 line = None
311 for line in ignored_lines:
312 tko_utils.dprint(line)
340 timestamp = line.optional_fields.get('timestamp')
360 # Get the next line.
362 line = status_line.parse_line(raw_line)
363 if line is None:
372 if line.type == 'END':
374 if line.indent < expected_indent:
378 line.optional_fields.get('timestamp'), line.reason)
380 elif line.indent > expected_indent:
382 tko_utils.dprint('ignoring line because of extra indentation')
385 # Initial line processing.
386 if line.type == 'START':
388 started_time = line.get_timestamp()
389 if (line.testname is None and line.subdir is None
406 if line.reason:
407 running_reasons.add(line.reason)
409 line.subdir,
410 line.testname,
411 line.reason,
420 subdir_stack.append(line.subdir)
422 elif line.type == 'INFO':
423 fields = line.optional_fields
426 current_kernel = line.get_kernel()
432 elif line.type == 'STATUS':
434 if line.subdir and stack.size() > min_stack_size:
435 subdir_stack[-1] = line.subdir
437 line.status)
438 if status_lib.is_worse_than_or_equal_to(line.status,
440 if line.reason:
443 running_reasons.add(line.reason)
450 msg = 'update RUNNING reason: %s' % line.reason
453 current_reason = line.reason
456 finished_time = line.get_timestamp()
458 if line.testname is None and line.subdir is None:
460 elif line.type == 'END':
463 if (line.testname is None and line.subdir is None
468 line.subdir = subdir_stack.pop()
470 subdir_stack[-1] = line.subdir
472 stack.update(line.status)
478 finished_time = line.get_timestamp()
480 if line.is_successful_reboot(current_status):
481 current_kernel = line.get_kernel()
483 if line.testname == 'reboot' and line.subdir is None:
484 line.testname = 'boot.%d' % boot_count
491 if line.testname is None:
492 line.testname = line.subdir
494 if line.testname is None:
495 line.testname = 'CLIENT_JOB.%d' % job_count
505 current_reason = line.reason
507 line.subdir,
508 line.testname,