Skip to content

Commit 8a97a1a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3671d3f commit 8a97a1a

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

pytest-embedded-qemu/pytest_embedded_qemu/qemu.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class QemuTarget:
2222
default_efuse: bytes
2323

2424

25-
QEMU_TARGETS: t.Dict[str, QemuTarget] = {
25+
QEMU_TARGETS: dict[str, QemuTarget] = {
2626
'esp32': QemuTarget(
2727
strap_mode='0x0F',
2828
default_efuse=binascii.unhexlify(
@@ -215,14 +215,16 @@ def execute_efuse_command(self, command: str):
215215
child.expect('qemu')
216216

217217
res = [r for r in res if r != '--do-not-confirm']
218-
espefuse.main([
219-
'--port',
220-
f'socket://localhost:{available_port}',
221-
'--before',
222-
'no_reset',
223-
'--do-not-confirm',
224-
*res,
225-
])
218+
espefuse.main(
219+
[
220+
'--port',
221+
f'socket://localhost:{available_port}',
222+
'--before',
223+
'no_reset',
224+
'--do-not-confirm',
225+
*res,
226+
]
227+
)
226228
self._hard_reset()
227229
finally:
228230
child.terminate()

pytest-embedded-qemu/tests/test_qemu.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ def test_pexpect_by_qemu(dut):
4646

4747
result = testdir.runpytest(
4848
'-s',
49-
'--embedded-services', 'idf,qemu',
50-
'--app-path', os.path.join(testdir.tmpdir, 'hello_world_esp32'),
49+
'--embedded-services',
50+
'idf,qemu',
51+
'--app-path',
52+
os.path.join(testdir.tmpdir, 'hello_world_esp32'),
5153
'--qemu-cli-args="-machine esp32 -nographic"',
52-
'--qemu-efuse-path', '/tmp/test.test'
54+
'--qemu-efuse-path',
55+
'/tmp/test.test',
5356
)
5457

5558
result.assert_outcomes(passed=1)

0 commit comments

Comments
 (0)