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

Unified Diff: build/android/pylib/ports.py

Issue 11187036: Android: start upstreaming some of our perf tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sami's comments Created 8 years, 2 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: build/android/pylib/ports.py
diff --git a/build/android/pylib/ports.py b/build/android/pylib/ports.py
index e9b6b901e03d25497a1ac78749e891c0bf165a2c..06b9f584d284193108bd8eaf0494455096b53dfe 100644
--- a/build/android/pylib/ports.py
+++ b/build/android/pylib/ports.py
@@ -51,7 +51,8 @@ def AllocateTestServerPort():
fp_lock = open(constants.TEST_SERVER_PORT_LOCKFILE, 'w')
fcntl.flock(fp_lock, fcntl.LOCK_EX)
# Get current valid port and calculate next valid port.
- assert os.path.exists(constants.TEST_SERVER_PORT_FILE)
+ if not os.path.exists(constants.TEST_SERVER_PORT_FILE):
+ ResetTestServerPortAllocation()
with open(constants.TEST_SERVER_PORT_FILE, 'r+') as fp:
port = int(fp.read())
ports_tried.append(port)
« no previous file with comments | « no previous file | build/android/pylib/surface_stats_collector.py » ('j') | build/android/pylib/surface_stats_collector.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698