mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1477572 [wpt PR 12133] - run_in_headless_android_emulator: add support for reverse port forwarding, a=testonly
Automatic update from web-platform-testsMerge pull request #12133 from web-platform-tests/sync_9631dcf3b0f4b975c064cf1c82259bcba13250e5 Merge pull request #12133 from sync_9631dcf3b0f4b975c064cf1c82259bcba13250e5 -- wpt-commits: e01a0bb41baf93f4cc520a452d621be1ad7359eb wpt-pr: 12133
This commit is contained in:
parent
f71a481a7d
commit
870ee66d33
@ -84,6 +84,7 @@ class ServoWebDriverBrowser(Browser):
|
||||
self.proc = None
|
||||
self.debug_info = debug_info
|
||||
self.hosts_path = write_hosts_file(server_config)
|
||||
self.server_ports = server_config.ports if server_config else {}
|
||||
self.command = None
|
||||
self.user_stylesheets = user_stylesheets if user_stylesheets else []
|
||||
|
||||
@ -94,6 +95,11 @@ class ServoWebDriverBrowser(Browser):
|
||||
env = os.environ.copy()
|
||||
env["HOST_FILE"] = self.hosts_path
|
||||
env["RUST_BACKTRACE"] = "1"
|
||||
env["EMULATOR_REVERSE_FORWARD_PORTS"] = ",".join(
|
||||
str(port)
|
||||
for _protocol, ports in self.server_ports.items()
|
||||
for port in ports
|
||||
)
|
||||
|
||||
debug_args, command = browser_command(
|
||||
self.binary,
|
||||
|
Loading…
Reference in New Issue
Block a user