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

Unified Diff: common/battor/battor/battor_wrapper.py

Issue 2608773002: Make battor_wrapper use target_platform instead of sys.platform
Patch Set: Created 4 years 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: common/battor/battor/battor_wrapper.py
diff --git a/common/battor/battor/battor_wrapper.py b/common/battor/battor/battor_wrapper.py
index be2359706a4b096fab12aee93c829008e23ceda0..b6ba4131acd373bb5c1a0a92eb489f49cabe70cd 100644
--- a/common/battor/battor/battor_wrapper.py
+++ b/common/battor/battor/battor_wrapper.py
@@ -119,8 +119,7 @@ class BattOrWrapper(object):
self._dm = dependency_manager.DependencyManager(
[dependency_manager.BaseConfig(config)])
self._battor_agent_binary = self._dm.FetchPath(
- 'battor_agent_binary', '%s_%s' % (sys.platform, platform.machine()))
-
+ 'battor_agent_binary', '%s_%s' % (target_platform, platform.machine()))
nednguyen 2017/01/05 21:15:15 As said offline, this is a problem. We are using t
self._autoflash = autoflash
self._serial_log_bucket = serial_log_bucket
self._tracing = False
@@ -381,7 +380,7 @@ class BattOrWrapper(object):
return False
avrdude_binary = self._dm.FetchPath(
- 'avrdude_binary', '%s_%s' % (sys.platform, platform.machine()))
+ 'avrdude_binary', '%s_%s' % (self._target_platform, platform.machine()))
avr_cmd = [
avrdude_binary,
'-e', # Specify to erase data on chip.
« no previous file with comments | « common/battor/battor/battor_binary_dependencies.json ('k') | telemetry/telemetry/core/tracing_controller_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698