Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Test suite: Problem with inet tests and the MIMXRT port. #8681

Closed
@robert-hh

Description

@robert-hh

Setup: MIMXRT board with the latest firmware, connected by Ethernet to a PC.
Test case: Trying to run multi_net/tcp_accept_recv.py or others from that set.

Observation:

a) The test runs fine when instance0 is micropython and instance1 is the board.
b) It fails when instance0 is the board and instance1 is micropython. The log is below.

When the test fails, there is no activity traced by wireshark. When the tests succeds, the expected activity is visible with wireshark.

Running the statements of the script manually at the two instances shows activity on the wire and ends up with an error no. 128 instead of 107 for not connected.

So what should be changed?
Log:

micropython/tests$ ./run-multitests.py -i pyb:a0 multi_net/tcp_accept_recv.py
multi_net/tcp_accept_recv.py on ttyACM0|micropython: FAIL
### TEST ###
--- instance0 ---
TIMEOUT
--- instance1 ---
Traceback (most recent call last):
  File "<stdin>", line 80, in <module>
  File "<stdin>", line 30, in instance1
OSError: [Errno 111] ECONNREFUSED
### TRUTH ###
--- instance0 ---
107
--- instance1 ---

### DIFF ###
--- /tmp/tmpqz4d9lma	2022-05-19 17:05:34.130534000 +0200
+++ /tmp/tmpjcts2wz_	2022-05-19 17:05:34.130534000 +0200
@@ -1,4 +1,7 @@
 --- instance0 ---
-107
+TIMEOUT
 --- instance1 ---
-
+Traceback (most recent call last):
+  File "<stdin>", line 80, in <module>
+  File "<stdin>", line 30, in instance1
+OSError: [Errno 111] ECONNREFUSED
1 tests performed
0 tests passed
1 tests failed: multi_net/tcp_accept_recv.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtestsRelates to tests/ directory in source

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions