gooftool: Fix exception when hwid_status does not match.
Execution failure by incorrect params.
BUG=none
TEST=none
Change-Id: I692dea06248bfebc4ba6ceba5eeb02ad88c49ff2
Reviewed-on: https://gerrit.chromium.org/gerrit/30839
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
diff --git a/py/gooftool/gooftool.py b/py/gooftool/gooftool.py
index bfecbae..5d59a3f 100755
--- a/py/gooftool/gooftool.py
+++ b/py/gooftool/gooftool.py
@@ -401,7 +401,7 @@
hwid_status = device.GetHwidStatus(hwid.bom, hwid.variant, hwid.volatile)
if hwid_status not in options.status:
sys.exit('HWID status must be one of [%s], found %r' %
- (', '.join(options.status, hwid_status)))
+ (', '.join(options.status), hwid_status))
probe_results = Probe()
cooked_components = hw_db.comp_db.MatchComponentProbeValues(
probe_results.found_probe_value_map)