Fixed terminal bug. Fixed tests which could leave the system without proper accessibility setup which could cause cthulhu to fail to start.
This commit is contained in:
1 parent
9e0ff41b16
commit
d717b93849
30 files changed
+611
-22
No files matched your search
@@ -12,6 +12,7 @@ import tempfile
|
||||
sys.dont_write_bytecode = True
|
||||
from native_echo_preview import PreviewSpeechServer
|
||||
from native_x11 import wait_for
|
||||
from native_test_session import run_private_session
|
||||
|
||||
|
||||
TITLE = "Cthulhu Mozilla Reading Probe"
|
||||
@@ -197,7 +198,7 @@ def main():
|
||||
for name in ("DBUS_SESSION_BUS_ADDRESS", "AT_SPI_BUS_ADDRESS", "WAYLAND_DISPLAY"):
|
||||
environment.pop(name, None)
|
||||
with (directory / "session.log").open("w") as log:
|
||||
subprocess.run(["xvfb-run", "-a", "-s", "-screen 0 1280x900x24", "dbus-run-session", "--",
|
||||
run_private_session(["xvfb-run", "-a", "-s", "-screen 0 1280x900x24", "dbus-run-session", "--",
|
||||
sys.executable, str(Path(__file__).resolve()), application, "--inside"],
|
||||
env=environment, stderr=log, check=True, timeout=120)
|
||||
|
||||
|
||||
Reference in new issue
Block a user