WebDriver: add timeout option to run-webdriver-tests script
[WebKit-https.git] / Tools / Scripts / webkitpy / thirdparty / __init__.py
index 742fc296ee933dd248b9241e2b47476343e6386b..d70c1bfb9b131e0a7a0d5321ce72ebd610b8263d 100644 (file)
@@ -110,6 +110,8 @@ class AutoinstallImportHook(object):
             self._install_mozlog()
         elif '.mozprocess' in fullname:
             self._install_mozprocess()
+        elif '.pytest_timeout' in fullname:
+            self._install_pytest_timeout()
 
     def _install_mechanize(self):
         self._install("https://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.5.tar.gz",
@@ -133,6 +135,10 @@ class AutoinstallImportHook(object):
         self._install("https://pypi.python.org/packages/cb/26/144dbc28d1f40e392f8a0cbee771ba624a61017f016c77ad88424d84b230/mozprocess-0.25.tar.gz#md5=07a04e6ae1a705705e4b44969fe7a182",
                               "mozprocess-0.25/mozprocess")
 
+    def _install_pytest_timeout(self):
+        self._install("https://pypi.python.org/packages/cc/b7/b2a61365ea6b6d2e8881360ae7ed8dad0327ad2df89f2f0be4a02304deb2/pytest-timeout-1.2.0.tar.gz#md5=83607d91aa163562c7ee835da57d061d",
+                              "pytest-timeout-1.2.0/pytest_timeout.py")
+
     def _install_pylint(self):
         self._ensure_autoinstalled_dir_is_in_sys_path()
         if (not self._fs.exists(self._fs.join(_AUTOINSTALLED_DIR, "pylint")) or