(process)
| 347 | return True |
| 348 | |
| 349 | def wait_for_process(process): |
| 350 | buffer = [] |
| 351 | if sys.platform != "win32": |
| 352 | os.set_blocking(process.stdout.fileno(), False) |
| 353 | while process.poll() is None: |
| 354 | while True: |
| 355 | line = process.stdout.readline() |
| 356 | if line: |
| 357 | decoded_line = line.decode("UTF-8") |
| 358 | if decoded_line != "": |
| 359 | buffer.append(decoded_line) |
| 360 | else: |
| 361 | break |
| 362 | else: |
| 363 | break |
| 364 | # Read any remaining output |
| 365 | for line in process.stdout: |
| 366 | decoded_line = line.decode("UTF-8") |
| 367 | if decoded_line: |
| 368 | buffer.append(decoded_line) |
| 369 | return buffer |
| 370 | |
| 371 | # The first build must call "idf.py build" and consecutive builds must call "idf.py elf" as it finishes faster. |
| 372 | # The problem is that the "idf.py build" always results in an error, even though the elf file is created. |
no outgoing calls
no test coverage detected