gecko-dev/testing/web-platform/tests/tools/localpaths.py
David H e3de6e60a3 Bug 1478700 [wpt PR 12193] - [WIP] Extending the capabilities of the HTTP/2.0 server, a=testonly
Automatic update from web-platform-tests[WIP] Extending the capabilities of the HTTP/2.0 server (#12193)

* Made multithreading more robust, and made it so each stream gets its
own thread

* Created H2Request object

* Improved `write_push` docstring, improved flexibility of `write_push`, the user can now choose wether or not to immediately push.

* Using `six.moves` for python compatibility with Queue

* Added beginning of test suite to test H2 stuff.

* Added ability to create and write bogus HEADER, DATA and CONTINUATION frames

* Vendored the hyper dependency used for testing H2 server

* Changed the way Python handlers work for H2, it now returns a FunctionHandler that has methods for specific frame handling if present in the .py resource. No longer requires a thread to parse the request. Allows things such as handling each frame as it is received.

* Refactored `finish_handling` to be a cleaner split between h1 and h2.

--

wpt-commits: e191c351ac133196a1f28218c5b9ef84b1a82c1b
wpt-pr: 12193
2018-08-16 17:47:36 +00:00

29 lines
1.4 KiB
Python

import os
import sys
here = os.path.abspath(os.path.split(__file__)[0])
repo_root = os.path.abspath(os.path.join(here, os.pardir))
sys.path.insert(0, os.path.join(here))
sys.path.insert(0, os.path.join(here, "wptserve"))
sys.path.insert(0, os.path.join(here, "pywebsocket"))
sys.path.insert(0, os.path.join(here, "third_party", "atomicwrites"))
sys.path.insert(0, os.path.join(here, "third_party", "attrs", "src"))
sys.path.insert(0, os.path.join(here, "third_party", "funcsigs"))
sys.path.insert(0, os.path.join(here, "third_party", "html5lib"))
sys.path.insert(0, os.path.join(here, "third_party", "more-itertools"))
sys.path.insert(0, os.path.join(here, "third_party", "pluggy"))
sys.path.insert(0, os.path.join(here, "third_party", "py"))
sys.path.insert(0, os.path.join(here, "third_party", "pytest", "src"))
sys.path.insert(0, os.path.join(here, "third_party", "six"))
sys.path.insert(0, os.path.join(here, "third_party", "webencodings"))
sys.path.insert(0, os.path.join(here, "third_party", "h2"))
sys.path.insert(0, os.path.join(here, "third_party", "hpack"))
sys.path.insert(0, os.path.join(here, "third_party", "hyperframe"))
sys.path.insert(0, os.path.join(here, "third_party", "certifi"))
sys.path.insert(0, os.path.join(here, "third_party", "hyper"))
sys.path.insert(0, os.path.join(here, "webdriver"))
sys.path.insert(0, os.path.join(here, "wptrunner"))
if sys.version_info[0] == 2:
sys.path.insert(0, os.path.join(here, "third_party", "enum"))