summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/wpt/browser.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/wpt/browser.py')
-rw-r--r--testing/web-platform/tests/tools/wpt/browser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/web-platform/tests/tools/wpt/browser.py b/testing/web-platform/tests/tools/wpt/browser.py
index c7f67d334e..2f9c453131 100644
--- a/testing/web-platform/tests/tools/wpt/browser.py
+++ b/testing/web-platform/tests/tools/wpt/browser.py
@@ -1282,6 +1282,11 @@ class Chrome(ChromeChromiumBase):
version = self.version(browser_binary)
if version is None:
+ # Check if the user has given a Chromium binary.
+ chromium = Chromium(self.logger)
+ if chromium.version(browser_binary):
+ raise ValueError("Provided binary is a Chromium binary and should be run using "
+ "\"./wpt run chromium\" or similar.")
raise ValueError(f"Unable to detect browser version from binary at {browser_binary}. "
" Cannot install ChromeDriver without a valid version to match.")