mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 10:31:02 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user