MCPcopy Create free account
hub / github.com/FastLED/FastLED / _get_last_output_line

Method _get_last_output_line

ci/util/running_process_group.py:483–497  ·  view source on GitHub ↗

Extract the last line of output from a process.

(self, process: RunningProcess)

Source from the content-addressed store, hash-verified

481 )
482
483 def _get_last_output_line(self, process: RunningProcess) -> Optional[str]:
484 """Extract the last line of output from a process."""
485 # Try to get from cached last output first
486 cached = self._process_last_output.get(process)
487 if cached:
488 return cached
489
490 # Fall back to stdout output
491 lines = _get_output_lines(process)
492 if lines:
493 last_line = lines[-1].strip()
494 self._process_last_output[process] = last_line
495 return last_line
496
497 return None
498
499 def _track_process_start(self, process: RunningProcess) -> None:
500 """Record when a process starts for timing calculations."""

Callers 1

get_statusMethod · 0.95

Calls 2

_get_output_linesFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected