MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / wait_for_process

Function wait_for_process

Tests/SdkIntegration/tactility.py:349–369  ·  view source on GitHub ↗
(process)

Source from the content-addressed store, hash-verified

347 return True
348
349def 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.

Callers 2

build_firstFunction · 0.85
build_consecutivelyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected