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

Unified Diff: tools/telemetry/telemetry/core/forwarders/android_forwarder.py

Issue 508923002: Fix AndroidRndisForwarder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« 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: tools/telemetry/telemetry/core/forwarders/android_forwarder.py
diff --git a/tools/telemetry/telemetry/core/forwarders/android_forwarder.py b/tools/telemetry/telemetry/core/forwarders/android_forwarder.py
index af30c1bfb7c2069dd4e6ec552c7175bf090c7d50..a3c3b1959a22096da5808137192d6b9c10e23a41 100644
--- a/tools/telemetry/telemetry/core/forwarders/android_forwarder.py
+++ b/tools/telemetry/telemetry/core/forwarders/android_forwarder.py
@@ -150,10 +150,10 @@ class AndroidRndisForwarder(forwarders.Forwarder):
"""Override any routing policy that could prevent
packets from reaching the rndis interface
"""
- policies = self._device.RunShellCommand('ip rule')
+ policies = self._adb.RunShellCommand('ip rule')
if len(policies) > 1 and not ('lookup main' in policies[1]):
- self._device.RunShellCommand('ip rule add prio 1 from all table main')
- self._device.RunShellCommand('ip route flush cache')
+ self._adb.RunShellCommand('ip rule add prio 1 from all table main')
+ self._adb.RunShellCommand('ip route flush cache')
def _RestoreRoutingPolicy(self):
policies = self._adb.RunShellCommand('ip rule')
« 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