summaryrefslogtreecommitdiff
path: root/tests/helpers/run_surfaces.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers/run_surfaces.py')
-rw-r--r--tests/helpers/run_surfaces.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/helpers/run_surfaces.py b/tests/helpers/run_surfaces.py
index f120e35..c266b3c 100644
--- a/tests/helpers/run_surfaces.py
+++ b/tests/helpers/run_surfaces.py
@@ -18,7 +18,8 @@ def wait_for(process, ready):
raise TimeoutError('Display server readiness')
def main():
- weston, xwayland, contract, hello, tablet, gl, vulkan, notepad = sys.argv[1:]
+ # Optional trailing binaries run only in the X11 phase.
+ weston, xwayland, contract, hello, tablet, gl, vulkan, notepad, *x11_only = sys.argv[1:]
servers = []
with tempfile.TemporaryDirectory(prefix='yasl-surfaces-') as directory:
root = Path(directory)
@@ -49,9 +50,12 @@ def main():
if backend == 'x11':
case.pop('WAYLAND_DISPLAY', None)
case['XDG_SESSION_TYPE'] = 'x11'
- for binary, args in ((contract,[backend]), (gl,[backend]),
+ cases = [(contract,[backend]), (gl,[backend]),
(vulkan,[backend]), (tablet,['--backend',backend,'--smoke-test']),
- (notepad,['--smoke-test'])):
+ (notepad,['--smoke-test'])]
+ if backend == 'x11':
+ cases += [(binary, []) for binary in x11_only]
+ for binary, args in cases:
if binary == '-':
continue
print('Testing', Path(binary).name, backend, flush=True)