Skip to content

Commit 21f5255

Browse files
committed
fix black
1 parent a626eb2 commit 21f5255

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/button_test.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ def _get_irq_numbers(self) -> bool:
7272
return False
7373

7474
formatted_keys = ", ".join(str(k) for k in self.irq_numbers.keys())
75-
logging.info(
76-
"Successfully found IRQ numbers: %s", formatted_keys
77-
)
75+
logging.info("Successfully found IRQ numbers: %s", formatted_keys)
7876
return True
7977

8078
def _get_smp_affinities(self) -> bool:
@@ -131,9 +129,7 @@ def _get_smp_affinities(self) -> bool:
131129
return False
132130
return True
133131

134-
def _get_interrupt_counts(
135-
self, irq_number: int
136-
) -> Optional[List[int]]:
132+
def _get_interrupt_counts(self, irq_number: int) -> Optional[List[int]]:
137133
"""
138134
Gets current interrupt counts for a specific IRQ across all CPUs.
139135
@@ -152,9 +148,7 @@ def _get_interrupt_counts(
152148
# Get counts only for the number of available CPUs
153149
max_idx = self.num_cpus + 1
154150
counts = [
155-
int(p)
156-
for p in parts[1:max_idx]
157-
if p.isdigit()
151+
int(p) for p in parts[1:max_idx] if p.isdigit()
158152
]
159153
return counts
160154
except Exception as e:
@@ -174,8 +168,9 @@ def run_test(self) -> bool:
174168
True if an interrupt was detected, False otherwise.
175169
"""
176170
if not self._get_irq_numbers():
177-
raise RuntimeError("Could not find IRQs for '{}'.".
178-
format(self.irq_name))
171+
raise RuntimeError(
172+
"Could not find IRQs for '{}'.".format(self.irq_name)
173+
)
179174

180175
if not self._get_smp_affinities():
181176
raise RuntimeError("Could not get CPU affinities for all IRQs.")

0 commit comments

Comments
 (0)