Skip to content

Commit 180c643

Browse files
committed
[ot] python/qemu: ot.pyot: fix up some typos
Signed-off-by: Emmanuel Blot <[email protected]>
1 parent 4fad21e commit 180c643

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

python/qemu/ot/pyot/executer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def run(self, debug: bool, allow_no_test: bool) -> int:
257257
self._log.info('%s count: %d',
258258
self.RESULT_MAP.get(kind, kind),
259259
results[kind])
260-
# sort by the largest occurence, discarding success
260+
# sort by the largest occurrence, discarding success
261261
errors = sorted((x for x in results.items() if x[0] > 0),
262262
key=lambda x: -x[1])
263263
# overall return code is the most common error, or success otherwise
@@ -307,7 +307,7 @@ def _cleanup_temp_files(self, storage: dict[str, set[str]]) -> None:
307307

308308
def _build_command(self, args: Namespace,
309309
opts: Optional[list[str]] = None) -> EasyDict[str, Any]:
310-
raise NotImplementedError('Abstact command')
310+
raise NotImplementedError('Abstract command')
311311

312312
def _build_test_command(self, filename: str) -> EasyDict[str, Any]:
313313
test_name = self.get_test_radix(filename)

python/qemu/ot/pyot/qemu/executer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _build_fw_args(self, args: Namespace) \
103103
else:
104104
if xtype != 'elf':
105105
raise ValueError(f'No support for test type: '
106-
f'{xtype.upper()}')
106+
f'{xtype.upper()} for {exec_path}')
107107
if rom_exec:
108108
# generate ROM option(s) for the application itself
109109
for chip in range(chiplet_count):

python/qemu/ot/pyot/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ def command(self) -> str:
6363
return normpath(self._cmd.split(' ', 1)[0])
6464

6565
@property
66-
def first_error(self):
66+
def first_error(self) -> str:
6767
"""Return the message of the first error, if any."""
6868
return self._first_error
6969

70-
def _run(self):
70+
def _run(self) -> None:
7171
self._resume = True
7272
if self._sync and not self._sync.is_set():
7373
self._log.info('Waiting for sync')

0 commit comments

Comments
 (0)