Skip to content

Commit fb8cb0a

Browse files
committed
tests/run-tests.py: Fix to work on qemu.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 29854e3 commit fb8cb0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/run-tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,11 @@ def detect_test_platform(pyb, args):
346346
tw = None
347347
if pyb:
348348
tw = detect_target_wiring_script(args)
349+
data = b""
349350
if tw:
350351
with open("target_wiring/" + tw, "rb") as f:
351-
pyb.target_wiring_script = f.read()
352+
data = f.read()
353+
pyb.target_wiring_script = data
352354

353355
# Print the detected information about the target.
354356
print("platform={}".format(platform), end="")

0 commit comments

Comments
 (0)