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

Unified Diff: build/android/test_runner.py

Issue 2176183004: [Android] Nuke the test server port lockfile explicitly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index 7a14a7166735dffa60f5f91610d76ac0e9f34840..9fcc789b09763cd0b96828cc53413e5a303cc517 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -820,6 +820,7 @@ def RunTestsCommand(args): # pylint: disable=too-many-return-statements
forwarder.Forwarder.RemoveHostLog()
if not ports.ResetTestServerPortAllocation():
raise Exception('Failed to reset test server port.')
+ os.unlink(ports._TEST_SERVER_PORT_LOCKFILE) # pylint: disable=protected-access
mikecase (wrong mikecase) 2016/07/26 03:07:06 do you have to add an... if os.path.exists(ports.
jbudorick 2016/07/26 03:24:31 Good catch. Fixed.
def get_devices():
return _GetAttachedDevices(args.blacklist_file, args.test_device,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698