summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2017-05-15 16:31:31 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-06-15 21:31:28 +0000
commit49657a77fd2a5598fc70c361e25c01fb51db4a45 (patch)
treee5853a9c282574c9f42a574df8ea5c3cecef7b41
parentc487e18a3f203dc8793e884730eb66b2706deb26 (diff)
downloadchrome-ec-stabilize-9460.66.B.tar.gz
flash_ec: Respect the raiden flag if no board givenstabilize-9460.66.B
In a lab servo, flash_ec is executed without the board flag. In this case, don't check the board flag for raiden and simply respect the raiden flag. BRANCH=none BUG=b:38319398 TEST=Ran the flash_ec script in a lab servo. Change-Id: Ib3757a4b7b550fd77facffdf2009cc3317591888 Reviewed-on: https://chromium-review.googlesource.com/506461 Commit-Ready: Wai-Hong Tam <waihong@google.com> Tested-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Mary Ruthven <mruthven@chromium.org> (cherry picked from commit f09ac93aeabcab6e681128a6a186aa9b511bcab5) Reviewed-on: https://chromium-review.googlesource.com/537693 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org>
-rwxr-xr-xutil/flash_ec2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 069eec8da3..10ee2051ac 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -284,7 +284,7 @@ on_servov3() {
error_reported= # Avoid double printing the error message.
on_raiden() {
if [ -z "${BOARD}" ]; then
- return 0
+ [ "${FLAGS_raiden}" = ${FLAGS_TRUE} ] && return 0 || return 1
fi
if [ "${FLAGS_raiden}" = ${FLAGS_TRUE} ]; then
if in_array "${BOARDS_RAIDEN[@]}" "${BOARD}"; then