(executable: str)
| 247 | |
| 248 | |
| 249 | def _build_scanner_check_command(executable: str) -> str: |
| 250 | quoted = shlex.quote(executable) |
| 251 | if "/" in executable: |
| 252 | return f"if [ -x {quoted} ]; then printf %s {quoted}; else exit 1; fi" |
| 253 | return f"command -v {quoted}" |
| 254 | |
| 255 | |
| 256 | def handle_benchmark_list(benchmark_file: str, *, verbose: bool = False) -> int: |