input_playback: fix some formatting
This was blocking my upload for https://crrev.com/c/2607162, but I
didn't want to fix it in that CL, to keep the diff clean.
BUG=none
TEST=none
Change-Id: Ia5fd58cb9800529ca5f3b3f8636471d3164267f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2607163
Tested-by: Harry Cutts <hcutts@chromium.org>
Auto-Submit: Harry Cutts <hcutts@chromium.org>
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
Commit-Queue: Kalin Stoyanov <kalin@chromium.org>
diff --git a/client/cros/input_playback/input_playback.py b/client/cros/input_playback/input_playback.py
index 139b1c5..98c9f98 100644
--- a/client/cros/input_playback/input_playback.py
+++ b/client/cros/input_playback/input_playback.py
@@ -264,11 +264,11 @@
"""
input_names = glob.glob(os.path.join(device_dir, 'input', 'input*'))
for input_name in input_names:
- name_path = os.path.join(input_name, 'name')
- if not os.path.exists(name_path):
- continue
- if name == self._get_contents_of_file(name_path):
- return os.path.basename(input_name)
+ name_path = os.path.join(input_name, 'name')
+ if not os.path.exists(name_path):
+ continue
+ if name == self._get_contents_of_file(name_path):
+ return os.path.basename(input_name)
# Raise if name could not be matched.
logging.error('Input names found(%s): %s', device_dir, input_names)
raise error.TestError('Could not match input* to this device!')