File tree Expand file tree Collapse file tree 2 files changed +17
-12
lines changed
Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments