Test: the stub Blender lives where the runner can execute it, not in the noexec /tmp

Idunn's python/node runners mount /tmp noexec; test-daemon copied the stub Blender there, so every export test saw
"unavailable" and 20 tests failed in the release build (node --test prints to stdout, which Idunn's error drops).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-25 02:08:00 +01:00
commit b6a87f9d1d

View file

@ -65,7 +65,8 @@ async function startDaemon({
if (threads !== null) settings.threads = threads;
// Blender is a copy of the stub in a directory of its own (the stub logs its starts beside itself): "stub" is
// ready, "broken" fails its version probe, "missing" is a path with nothing there, null is unconfigured.
const blenderDir = mkdtempSync(path.join(os.tmpdir(), "vili-blender-"));
mkdirSync(execScratch, { recursive: true });
const blenderDir = mkdtempSync(path.join(execScratch, "blender-"));
const blenderPath = blender === null ? null : path.join(blenderDir, { stub: "blender", broken: "blender-broken", missing: "absent" }[blender]);
if (blender === "stub" || blender === "broken") {
copyFileSync(stubBlenderPath, blenderPath);