Skip to content

Commit

Permalink
test: Prefer chromium-browser over -headless
Browse files Browse the repository at this point in the history
In cockpit-project/cockpituous#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.
  • Loading branch information
martinpitt committed Jan 20, 2025
1 parent cd6e994 commit f6b3012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/webdriver_bidi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}")
Expand Down

0 comments on commit f6b3012

Please sign in to comment.