From dc06d8829916e44dfdeaaf06dfd620cb51b70d80 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Fri, 28 Aug 2026 10:07:16 +0000 Subject: [PATCH] test: own soffice profile for the render-consistency leg Run in parallel with lo-roundtrip, both soffice instances raced for the shared user profile lock and the conversion died intermittently. --- tests/lo-render-consistency.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lo-render-consistency.test.ts b/tests/lo-render-consistency.test.ts index 1ce08e8..6d83c3f 100644 --- a/tests/lo-render-consistency.test.ts +++ b/tests/lo-render-consistency.test.ts @@ -24,7 +24,8 @@ function pgm(path: string): { w: number; h: number; pixels: Uint8Array } { } function renderPages(file: string, prefix: string): string[] { - execSync(`soffice --headless --convert-to pdf --outdir ${DIR}/${prefix} ${DIR}/${file}`, { stdio: 'pipe', timeout: 120000 }); + // Own user profile: a parallel lo-roundtrip soffice would otherwise hold the lock. + execSync(`soffice -env:UserInstallation=file://${DIR}/profile --headless --convert-to pdf --outdir ${DIR}/${prefix} ${DIR}/${file}`, { stdio: 'pipe', timeout: 120000 }); const pdf = `${DIR}/${prefix}/${file.replace(/\.\w+$/, '.pdf')}`; execSync(`pdftoppm -gray -r 60 ${pdf} ${DIR}/${prefix}/page`, { stdio: 'pipe', timeout: 120000 }); return readdirSync(`${DIR}/${prefix}`).filter((f) => f.endsWith('.pgm')).sort()