Skip to content

Commit 0764838

Browse files
committed
run-tests: finish renaming of openpty fds
1 parent 49e95b4 commit 0764838

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/run-tests

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ def run_micropython(pyb, args, test_file, is_special=False):
8787
def get(required=False):
8888
rv = b''
8989
while True:
90-
ready = select.select([primary], [], [], 0.02)
91-
if ready[0] == [primary]:
92-
rv += os.read(primary, 1024)
90+
ready = select.select([parent_fd], [], [], 0.02)
91+
if ready[0] == [parent_fd]:
92+
rv += os.read(parent_fd, 1024)
9393
else:
9494
if not required or rv:
9595
return rv
9696

9797
def send_get(what):
98-
os.write(primary, what)
98+
os.write(parent_fd, what)
9999
return get()
100100

101101
with open(test_file, 'rb') as f:

0 commit comments

Comments
 (0)