(cmd, cwd=None, env=None, timeout=None, check=True)
| 245 | |
| 246 | |
| 247 | def run(cmd, cwd=None, env=None, timeout=None, check=True): |
| 248 | result = subprocess.run( |
| 249 | cmd, |
| 250 | cwd=cwd, |
| 251 | env=env, |
| 252 | stdout=subprocess.PIPE, |
| 253 | stderr=subprocess.STDOUT, |
| 254 | text=True, |
| 255 | timeout=timeout, |
| 256 | ) |
| 257 | if check and result.returncode != 0: |
| 258 | sys.exit(f"command failed ({result.returncode}): {' '.join(map(str, cmd))}\n{result.stdout}") |
| 259 | return result |
| 260 | |
| 261 | |
| 262 | def resolve_store_db_path(tracedecay_bin, fixture, env): |
no test coverage detected