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

Unified Diff: client/site_tests/hardware_Components/hardware_Components.py

Issue 3335020: add entire FMAP structure into ROM hash (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 10 years, 3 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: client/site_tests/hardware_Components/hardware_Components.py
diff --git a/client/site_tests/hardware_Components/hardware_Components.py b/client/site_tests/hardware_Components/hardware_Components.py
index d95b08205d4092c048449dfc47947237ce11dd81..53ec215a334c9aa5e1d975552f25c9e41eb451dd 100644
--- a/client/site_tests/hardware_Components/hardware_Components.py
+++ b/client/site_tests/hardware_Components/hardware_Components.py
@@ -8,6 +8,7 @@ from autotest_lib.client.bin import test, utils
from autotest_lib.client.common_lib import error
from autotest_lib.client.common_lib import flashrom_util
from autotest_lib.client.common_lib import gbb_util
+from autotest_lib.client.common_lib import site_fmap
from autotest_lib.client.common_lib import site_vblock
@@ -260,6 +261,10 @@ class hardware_Components(test.test):
if not layout:
raise error.TestError('Cannot detect ChromeOS flashrom layout')
hash_src = ''
+ fmap_obj = site_fmap.fmap_decode(base_img)
+ if not fmap_obj:
+ raise error.TestError('No FMAP structure in flashrom.')
+ hash_src = hash_src + site_fmap.fmap_encode(fmap_obj)
for section in hash_ro_list:
src = flashrom.get_section(base_img, layout, section)
if not src:
« 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