gooftool: bug fix
When Finalize command invokes EnableFwWp (enable firmware write
protect), it will pass an empty dictionary ({}) to the function.
However, the CommandWithWaiveCheck cannot work with '{}', we will pass
the 'options' to EnableFwWp as other functions.
BUG=None
TEST=manual
Change-Id: I3ddc884dcdee0a96f506310ea833d51e81861807
Reviewed-on: https://chromium-review.googlesource.com/398682
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
diff --git a/py/gooftool/commands.py b/py/gooftool/commands.py
index e1ae132..0a37fcb 100755
--- a/py/gooftool/commands.py
+++ b/py/gooftool/commands.py
@@ -714,7 +714,7 @@
logging.warn('WARNING: Firmware Write Protection is SKIPPED.')
event_log.Log('wp', fw='both', status='skipped')
else:
- EnableFwWp({})
+ EnableFwWp(options)
LogSystemDetails(options)
UploadReport(options)