diff options
author | Sameer Nanda <snanda@chromium.org> | 2014-10-10 08:57:24 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-11 02:22:53 +0000 |
commit | 63c41f239223cb343978635c7409ee341eeb08d8 (patch) | |
tree | 2f8d6df13216b33e3a971b3f2ae3d5a9f9c6ff8a | |
parent | b50e5a8b3066cdab6cb98f25038ef8649410ce2a (diff) | |
download | chrome-ec-63c41f239223cb343978635c7409ee341eeb08d8.tar.gz |
temp_metrics: add "--" when invoking ectool tmp006cal
ectool has switched over to using getopt for command line options parsing.
This breaks temp_metrics' invocation of "ectool tmp006cal" command since
some of the coefficients are negative and therefore start with "-".
getopt treats that as another command line option causing ectool to
barf.
BUG=chromium:422160
TEST=On a Pixel issue "sudo start temp_metrics" and check
/var/log/messages to ensure that no new messages such as "init:
temp_metrics main process ended, respawning" show up.
BRANCH=none
Change-Id: I42232b3027ec6339814d226f1d8ab493e3420eea
Signed-off-by: Sameer Nanda <snanda@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/222845
Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r-- | util/temp_metrics.conf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/temp_metrics.conf b/util/temp_metrics.conf index 307938d019..bf10ee0907 100644 --- a/util/temp_metrics.conf +++ b/util/temp_metrics.conf @@ -107,7 +107,9 @@ script CHARGER_D="3 $CHARGER_D_S0 $B0 $B1 $B2" for i in "$USB_C" "$PCH_D" "$HINGE_C" "$CHARGER_D"; do - ectool tmp006cal $i + # Add "--" otherwise ectool will barf when trying to parse negative + # coefficients. + ectool tmp006cal -- $i done } |