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

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

Issue 3246002: Add flashrom memory layout detection by FMAP (using fmap_decode) (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: change site_fmap license header Created 10 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 | « client/common_lib/site_fmap.py ('k') | client/site_tests/hardware_Components/hardware_Components.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/factory_EnableWriteProtect/factory_EnableWriteProtect.py
diff --git a/client/site_tests/factory_EnableWriteProtect/factory_EnableWriteProtect.py b/client/site_tests/factory_EnableWriteProtect/factory_EnableWriteProtect.py
index 8faf1f6e0b3f8e8d7fa006e82ecf3ff8988b69d7..d58dd8651073e6798c60531fb2d2b46da7c3eace 100644
--- a/client/site_tests/factory_EnableWriteProtect/factory_EnableWriteProtect.py
+++ b/client/site_tests/factory_EnableWriteProtect/factory_EnableWriteProtect.py
@@ -63,7 +63,9 @@ class factory_EnableWriteProtect(test.test):
'Cannot read valid flash rom data.\n' \
'無法讀取快閃記憶體資料')
flashrom_size = len(original)
- layout = self.flashrom.detect_layout(conf['layout'], flashrom_size)
+ # do not trust current image when detecting layout.
+ layout = self.flashrom.detect_layout(conf['layout'],
+ flashrom_size, None)
if not layout:
raise error.TestError(
'Cannot detect flash rom layout.\n' \
« no previous file with comments | « client/common_lib/site_fmap.py ('k') | client/site_tests/hardware_Components/hardware_Components.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698