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

Unified Diff: build/android/pylib/perf/test_runner.py

Issue 25982005: Relands: Android perf tests: kill adbd on the device after running a test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf/test_runner.py
diff --git a/build/android/pylib/perf/test_runner.py b/build/android/pylib/perf/test_runner.py
index fec7537f06c31e53d92c50e9a4bb1c4f9c501bda..d145331aece1f10ee76907ef1106fbb7593ee6ea 100644
--- a/build/android/pylib/perf/test_runner.py
+++ b/build/android/pylib/perf/test_runner.py
@@ -50,7 +50,9 @@ import pickle
import os
import sys
+from pylib import android_commands
from pylib import constants
+from pylib import forwarder
from pylib.base import base_test_result
from pylib.base import base_test_runner
@@ -153,6 +155,13 @@ class TestRunner(base_test_runner.BaseTestRunner):
}
self._SaveResult(persisted_result)
+ try:
+ logging.warning('Unmapping device ports')
+ forwarder.Forwarder.UnmapAllDevicePorts(self.adb)
+ self.adb.KillAdbdDevice()
+ except Exception as e:
+ logging.error('Exception when tearing down device %s', e)
+
return (output, result_type)
def RunTest(self, test_name):
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698