More LibreOffice changes.

This commit is contained in:
Storm Dragon committed 2026-10-15 21:00:52 -04:00
1 parent 3e0bdc578f
commit f885333520
23 files changed
+852 -23

No files matched your search

+8 -4
View File
@@ -39,6 +39,8 @@ def run_inside():
)
document = root / "Example.fods"
shutil.copyfile(Path(__file__).with_name("libreoffice.fods"), document)
secondDocument = root / "Other.fods"
shutil.copyfile(document, secondDocument)
environment = dict(os.environ, SAL_USE_VCLPLUGIN="gtk3",
LC_ALL="C.UTF-8",
GTK_MODULES="gail:atk-bridge", NO_AT_BRIDGE="0",
@@ -86,13 +88,15 @@ def run_inside():
return found
wait_for(ready, "Calc accessible sheet missing")
environment.update(CTHULHU_NATIVE_LIBREOFFICE="1", CTHULHU_CALC_WINDOW=window)
environment.update(CTHULHU_NATIVE_LIBREOFFICE="1", CTHULHU_CALC_WINDOW=window,
CTHULHU_CALC_PROFILE=(root / "profile").as_uri(),
CTHULHU_CALC_SECOND_DOCUMENT=str(secondDocument))
environment.setdefault("GOCACHE", "/tmp/cthulhu-go-cache")
subprocess.run(
["go", "test", "./internal/app", "-run", "^TestNativeLibreOfficeCalc$",
"-count=1", "-timeout=50s", "-v"],
"-count=1", "-timeout=80s", "-v"],
cwd=Path(__file__).resolve().parents[1], env=environment,
check=True, timeout=60,
check=True, timeout=90,
)
finally:
if application.poll() is None:
@@ -143,7 +147,7 @@ def main():
subprocess.run(
["xvfb-run", "-a", "dbus-run-session", "--", sys.executable,
str(Path(__file__).resolve()), "--inside"],
env=environment, check=True, timeout=90,
env=environment, check=True, timeout=120,
)