WebDriver: add timeout option to run-webdriver-tests script
[WebKit-https.git] / Tools / Scripts / webkitpy / webdriver_tests / webdriver_test_runner_w3c.py
index 6c9ab14d6f146f9d232e52d8a8f68d73c1e881ec..0bdd93f0d466c94488978969acba76de22f4f11a 100644 (file)
@@ -44,6 +44,10 @@ class WebDriverTestRunnerW3C(object):
         _log.info('Using driver at %s' % (self._driver.binary_path()))
         _log.info('Browser: %s' % (self._driver.browser_name()))
 
+        timeout = self._port.get_option('timeout')
+        if timeout > 0:
+            os.environ['PYTEST_TIMEOUT'] = str(timeout)
+
         self._results = []
         self._server = WebDriverW3CWebServer(self._port)