(binary, cache, args, stdin=None, timeout=90)
| 47 | |
| 48 | |
| 49 | def run_cli(binary, cache, args, stdin=None, timeout=90): |
| 50 | env = dict(os.environ) |
| 51 | env["CBM_CACHE_DIR"] = cache |
| 52 | return subprocess.run([binary] + args, capture_output=True, timeout=timeout, |
| 53 | env=env, input=stdin) |
| 54 | |
| 55 | |
| 56 | def out_text(result): |
no outgoing calls
no test coverage detected