Wrapper for calling a subprocess. args is the first argument of subprocess.Popen, typically an array, e.g., ["echo", "hi"]. If check is set, raise an exception on failure.
(args, check=True)
| 378 | ALL_SUITES = DEFAULT_SUITES + OTHER_SUITES |
| 379 | |
| 380 | def _call(args, check=True): |
| 381 | """Wrapper for calling a subprocess. |
| 382 | |
| 383 | args is the first argument of subprocess.Popen, typically |
| 384 | an array, e.g., ["echo", "hi"]. |
| 385 | |
| 386 | If check is set, raise an exception on failure. |
| 387 | """ |
| 388 | logging.info("Calling: %s", args) |
| 389 | if check: |
| 390 | subprocess.check_call(args, stdin=None) |
| 391 | else: |
| 392 | return subprocess.call(args, stdin=None) |
| 393 | |
| 394 | |
| 395 | def _check_output(*args, **kwargs): |
no test coverage detected