From f6b301230399d340523a41755e5fcae7785ae5b6 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 20 Jan 2025 15:51:00 +0100 Subject: [PATCH] test: Prefer chromium-browser over -headless In https://github.com/cockpit-project/cockpituous/pull/637 we moved the tasks container to full chromium. As our pixel tests are now calibrated to that instead of -headless, also prefer running the full chromium over headless. --- test/common/webdriver_bidi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/webdriver_bidi.py b/test/common/webdriver_bidi.py index de7e36c70fd4..346487037bbc 100644 --- a/test/common/webdriver_bidi.py +++ b/test/common/webdriver_bidi.py @@ -348,7 +348,7 @@ async def start_bidi_session(self) -> None: candidate_binaries = ["/usr/bin/chromium-browser", "/usr/bin/chromium"] if self.headless: - candidate_binaries.insert(0, "/usr/lib64/chromium-browser/headless_shell") + candidate_binaries.append("/usr/lib64/chromium-browser/headless_shell") binaries = [path for path in candidate_binaries if os.path.exists(path)] if not binaries: raise WebdriverError(f"no Chromium binary found: tried {' '.join(candidate_binaries)}")