Commit 5681197a authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

Start testing availability of certain executables

parent fc896ae5
Pipeline #104073 failed with stages
in 75 minutes and 35 seconds
import shutil
executables = [
"flex",
"yacc",
]
def is_available(exe: str) -> bool:
return shutil.which(exe) is not None
def test_executables() -> None:
missing = [exe
for exe in executables
if not is_available(exe)]
assert not missing, f"Missing executables: {', '.join(missing)}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment