| 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' \
|
|
|