WebDriver: add timeout option to run-webdriver-tests script
[WebKit-https.git] / Tools / Scripts / webkitpy / webdriver_tests / webdriver_w3c_executor.py
index 93517bd52bf7ee91fb3e781abde5cfb87d322178..953a0050fe355458f59d63cc8deff6fcf752c1dc 100644 (file)
@@ -41,6 +41,7 @@ _ensure_directory_in_path(os.path.join(w3c_tools_dir, 'webdriver'))
 _ensure_directory_in_path(os.path.join(w3c_tools_dir, 'wptrunner'))
 _ensure_directory_in_path(os.path.join(w3c_tools_dir, "webdriver"))
 
+import webkitpy.thirdparty.autoinstalled.pytest_timeout
 from wptrunner.executors.base import WdspecExecutor, WebDriverProtocol
 from wptrunner.webdriver_server import WebDriverServer
 
@@ -136,4 +137,5 @@ class WebDriverW3CExecutor(WdspecExecutor):
         self.protocol.teardown()
 
     def run(self, path):
-        return self.do_wdspec(self.protocol.session_config, path, 25)
+        # Timeout here doesn't really matter because it's ignored, so we pass 0.
+        return self.do_wdspec(self.protocol.session_config, path, 0)