summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorPaul Fagerburg <pfagerburg@google.com>2020-07-21 13:12:02 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-22 22:49:46 +0000
commit514923bc59f5a3435dbb7cbf348735ed41889ffe (patch)
tree15efb9db43b84f903e1915a78162e020808fec09 /extra
parentb93f139e47f8ced7ebe2414737296f9a6ba49cbc (diff)
downloadchrome-ec-514923bc59f5a3435dbb7cbf348735ed41889ffe.tar.gz
ec: change usage of "sane" per inclusive language
Google is working to change its source code to use more inclusive language. To that end, replace the terms "sane", "sanity check", and similar with inclusive/non-stigmatizing alternatives. BUG=b:161832469 BRANCH=None TEST=`make buildall -j` succeeds. `grep -Eir "sane|sanity" .` shows results only in third-party code or documentation. Signed-off-by: Paul Fagerburg <pfagerburg@chromium.org> Change-Id: I29e78ab27f84f17b1ded75cfa10868fa4e5ae88c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2311169 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'extra')
-rwxr-xr-xextra/usb_updater/servo_updater.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/usb_updater/servo_updater.py b/extra/usb_updater/servo_updater.py
index f899e158bc..06c36f37b6 100755
--- a/extra/usb_updater/servo_updater.py
+++ b/extra/usb_updater/servo_updater.py
@@ -66,12 +66,12 @@ def flash2(vidpid, serialno, binfile):
print(cmd)
help_cmd = '%s --help' % tool
with open('/dev/null') as devnull:
- sanity_check = subprocess.call(help_cmd.split(), stdout=devnull,
- stderr=devnull)
- if sanity_check:
+ valid_check = subprocess.call(help_cmd.split(), stdout=devnull,
+ stderr=devnull)
+ if valid_check:
raise ServoUpdaterException('%s exit with res = %d. Make sure the tool '
'is available on the device.' % (help_cmd,
- sanity_check))
+ valid_check))
res = subprocess.call(cmd.split())
if res in (0, 1, 2):