commit | a571d9141d716a8d183a38961abb34264b71ad98 | [log] [tgz] |
---|---|---|
author | Ilja H. Friedel <ihf@chromium.org> | Sun Oct 20 22:29:02 2019 +0000 |
committer | Ilja H. Friedel <ihf@chromium.org> | Sun Oct 20 22:32:26 2019 +0000 |
tree | 4bb754af0cbb00c083ac5e5fa7ad7e44b43abc00 | |
parent | 9f771d41fd6c8344abab154fb155be7a051b8362 [diff] |
Revert "utils: fix typo in hwmon." This reverts commit 0fa87f9a892ba345d3cc657e16c5ca2a71ef9dc6. BUG=1016189 Original change's description: > utils: fix typo in hwmon. > > Not caching the paths probably caused minor performance issues > in perf tests. > > BUG=None. > TEST=None. > > Change-Id: I94c6eb4a2e9cf2b21956a3083cc295a364ad7d31 > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1867752 > Tested-by: Ilja H. Friedel <ihf@chromium.org> > Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> > Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Bug: None. Change-Id: Ie5e1b02d183c39a20cd1ca64b4a5d48149cfd984 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1870976 Reviewed-by: Ilja H. Friedel <ihf@chromium.org> Commit-Queue: Ilja H. Friedel <ihf@chromium.org> Tested-by: Ilja H. Friedel <ihf@chromium.org> (cherry picked from commit ba3c25ec0de010ec7d6e61cc40cf504d860028e3) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1870977
diff --git a/client/bin/utils.py b/client/bin/utils.py index 04f33b1..d4f4e72 100644 --- a/client/bin/utils.py +++ b/client/bin/utils.py
@@ -1865,8 +1865,8 @@ # /sys/devices/platform/coretemp.0/ if not _hwmon_paths: cmd = 'find /sys/ -name "' + file_pattern + '"' - _hwmon_paths = utils.run(cmd, verbose=False).stdout.splitlines() - return _hwmon_paths + _hwon_paths = utils.run(cmd, verbose=False).stdout.splitlines() + return _hwon_paths def get_temperature_critical():