diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-07-14 14:19:14 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-26 19:43:40 +0000 |
commit | f37d95b3edc6ff7bbda96fe7a4147273db66c306 (patch) | |
tree | aaf408cfa525efce460cddb4153101b1db492109 /cts/common | |
parent | 160af3cb3634f645ef0ca1a3c312c68cc3316869 (diff) | |
download | chrome-ec-f37d95b3edc6ff7bbda96fe7a4147273db66c306.tar.gz |
ec: Switch black to 80 cols and reformat files
Add pyproject.toml config file to set black to 80 columns.
Remove column length overrides from other config files.
Reformat python files to 80 cols.
BRANCH=None
BUG=b:238434058
TEST=presubmit/CQ
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I870a68f1bb751f4bad97024045f6e3075489e80f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3764071
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'cts/common')
-rw-r--r-- | cts/common/board.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/cts/common/board.py b/cts/common/board.py index 68071f0b28..19b39c07cb 100644 --- a/cts/common/board.py +++ b/cts/common/board.py @@ -271,7 +271,14 @@ class Board(six.with_metaclass(ABCMeta, object)): for device in com_devices: self.tty_port = os.path.join(dev_dir, device) properties = sp.check_output( - ["udevadm", "info", "-a", "-n", self.tty_port, "--query=property"], + [ + "udevadm", + "info", + "-a", + "-n", + self.tty_port, + "--query=property", + ], **get_subprocess_args() ) for line in [l.strip() for l in properties.split("\n")]: @@ -394,7 +401,11 @@ class DeviceUnderTest(Board): # If len(dut) is 0 then your dut doesn't use an st-link device, so we # don't have to worry about its serial number if not dut: - msg = "Failed to find serial for DUT.\nIs " + self.board + " connected?" + msg = ( + "Failed to find serial for DUT.\nIs " + + self.board + + " connected?" + ) raise RuntimeError(msg) if len(dut) > 1: msg = ( |