Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: telemetry/telemetry/core/util.py

Issue 2997603002: Try fixing telemetry on CrOS (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: telemetry/telemetry/core/util.py
diff --git a/telemetry/telemetry/core/util.py b/telemetry/telemetry/core/util.py
index cf44603a96684cfc59e5b3ee858ee82ce2f4f8d4..904454e7d8984be6a4959684056efab30eb836cb 100644
--- a/telemetry/telemetry/core/util.py
+++ b/telemetry/telemetry/core/util.py
@@ -87,20 +87,6 @@ class PortKeeper(object):
self._temp_socket = None
-def GetUnreservedAvailableLocalPort():
- """Returns an available port on the system.
-
- WARNING: This method does not reserve the port it returns, so it may be used
- by something else before you get to use it. This can lead to flake.
- """
- tmp = socket.socket()
- tmp.bind(('', 0))
- port = tmp.getsockname()[1]
- tmp.close()
-
- return port
-
-
def GetBuildDirectories(chrome_root=None):
"""Yields all combination of Chromium build output directories."""
# chrome_root can be set to something else via --chrome-root.
« no previous file with comments | « telemetry/telemetry/core/local_server.py ('k') | telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698