| Index: mojo/devtools/common/devtoolslib/linux_shell.py
|
| diff --git a/mojo/devtools/common/devtoolslib/linux_shell.py b/mojo/devtools/common/devtoolslib/linux_shell.py
|
| index 48a28592cd8e3c38bf507f67ec5eea6c90c944a4..8a0ec7f28d72259b1c09a9c82d5dfff5a71fd4e8 100644
|
| --- a/mojo/devtools/common/devtoolslib/linux_shell.py
|
| +++ b/mojo/devtools/common/devtoolslib/linux_shell.py
|
| @@ -25,8 +25,14 @@ class LinuxShell(Shell):
|
| self.command_prefix = command_prefix if command_prefix else []
|
|
|
| @overrides(Shell)
|
| - def serve_local_directories(self, mappings, port=0, free_host_port=False):
|
| - return 'http://%s:%d/' % http_server.start_http_server(mappings, port)
|
| + def serve_local_directories(self, mappings, port=0, reuse_servers=False):
|
| + if reuse_servers:
|
| + assert port, 'Cannot reuse the server when |port| is 0.'
|
| + server_address = ('127.0.0.1', port)
|
| + else:
|
| + server_address = http_server.start_http_server(mappings, port)
|
| +
|
| + return 'http://%s:%d/' % server_address
|
|
|
| @overrides(Shell)
|
| def forward_host_port_to_shell(self, host_port):
|
|
|