flash_ec: Respect the raiden flag if no board given

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>
This commit is contained in:
Wai-Hong Tam
2017-05-15 16:31:31 -07:00
committed by chrome-bot
parent bbdb9fb321
commit f09ac93aea

View File

@@ -288,7 +288,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