Skip to content

Commit

Permalink
tests: make $DISPLAY available for x11
Browse files Browse the repository at this point in the history
I am not really sure why this passes in our CI ($DISPLAY wouldn't be set
there I wouldn't think?), but hopefully this fixes it.

Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
  • Loading branch information
tych0 committed Apr 13, 2024
1 parent f987f5f commit dae6404
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/backend/x11/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ def __init__(self, env, args=()):
self.core = Core
self.manager = None

def configure(self, manager):
"""This backend needs to get DISPLAY variable."""
success, display = manager.c.eval("self.core.display_name")
assert success
self.env["DISPLAY"] = display

def fake_click(self, x, y):
"""Click at the specified coordinates"""
conn = Connection(self.env["DISPLAY"])
Expand Down

0 comments on commit dae6404

Please sign in to comment.