mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 21:18:38 +00:00
DrmOracle.__init__ and Oracle.__init__ create a temporary workdir and then can raise Unavailable (a skipped probe, exit 77). close() is never reached for an object whose constructor raised, so every skipped run left a leonida-hw-oracle-* directory in the temp dir. Remove the directory when the constructor made it and then fails. A caller-supplied workdir is left alone. tests/test_hw_oracle_workdir_leak.py covers the early, late and caller-supplied cases with no GPU or libdrm.