(*args, **kwargs)
| 443 | |
| 444 | |
| 445 | async def async_check_output(*args, **kwargs): |
| 446 | async with async_process( |
| 447 | *args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs |
| 448 | ) as process: |
| 449 | stdout, stderr = await process.communicate() |
| 450 | if process.returncode == 0: |
| 451 | return stdout.decode(*DECODE_ARGS) |
| 452 | else: |
| 453 | raise CalledProcessError( |
| 454 | process.returncode, args, |
| 455 | stdout.decode(*DECODE_ARGS), stderr.decode(*DECODE_ARGS) |
| 456 | ) |
| 457 | |
| 458 | |
| 459 | # Return a list of the serial numbers of connected devices. Emulators will have |
no test coverage detected
searching dependent graphs…