Parse Makefile output, handling the 'Building version' line.
(output)
| 22 | |
| 23 | |
| 24 | def parse_makefile_output(output): |
| 25 | """Parse Makefile output, handling the 'Building version' line.""" |
| 26 | lines = output.splitlines() |
| 27 | # Skip "Building version" line if present |
| 28 | if lines and lines[0].startswith("Building version"): |
| 29 | if len(lines) > 1: |
| 30 | file_list = lines[1] |
| 31 | else: |
| 32 | file_list = "" |
| 33 | else: |
| 34 | file_list = lines[0] if lines else "" |
| 35 | |
| 36 | # Split by spaces and filter out empty strings |
| 37 | files = [f for f in file_list.split() if f] |
| 38 | return files |
| 39 | |
| 40 | |
| 41 | def get_files_to_check(): |
no outgoing calls
no test coverage detected