diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-04-19 09:57:46 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-19 03:37:13 -0700 |
commit | c6ce2208e3b6bf2fd1b51269dfdff4c57139af84 (patch) | |
tree | 47023d835c4a720f299152be2c06168b00c43437 /util/flash_ec | |
parent | 49241f476e1afb12c550baf775ce63a1b2e6920b (diff) | |
download | chrome-ec-c6ce2208e3b6bf2fd1b51269dfdff4c57139af84.tar.gz |
flash_ec: Fix SERVO_TYPE test
Without this, we see this line when running flash_ec.
util/flash_ec: line 787: [: =~: binary operator expected
These kind of tests require double brackets.
BUG=b:77825616
BRANCH=none
TEST=run util/flash_ec using servo_micro on staff.
Change-Id: I6baecec2252276ac06992fd2b2e50f74d55805f2
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1018560
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'util/flash_ec')
-rwxr-xr-x | util/flash_ec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec index a91709ee7f..04307929b7 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -784,7 +784,7 @@ function flash_stm32() { info "${MCU} UART pty : ${EC_UART}" claim_pty ${EC_UART} - if ! on_raiden && [ "${SERVO_TYPE}" =~ "servo" ] ; then + if ! on_raiden && [[ "${SERVO_TYPE}" =~ "servo" ]] ; then dut_control ${MCU}_uart_en:on fi dut_control ${MCU}_uart_parity:even |