Bug 14840 - AB-INT PTEST ARM: python3 testSockName ptest failure
Summary: AB-INT PTEST ARM: python3 testSockName ptest failure
Status: RESOLVED FIXED
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.1 M2
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2022-06-16 14:28 UTC by Alexandre Belloni
Modified: 2022-06-23 14:47 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2022-06-16 14:28:23 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/3370/steps/12/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 1 Ross Burton 2022-06-16 14:48:16 UTC
ERROR: testSockName (test.test_socket.GeneralModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/test/test_socket.py", line 1380, in testSockName
    sock.bind(("0.0.0.0", port))
OSError: [Errno 98] Address already in use
Comment 2 Ross Burton 2022-06-17 10:16:50 UTC
The test does this:

        port = socket_helper.find_unused_port()
        sock.bind(("0.0.0.0", port))

Great.
Comment 3 Ross Burton 2022-06-17 12:00:11 UTC
Got a fix.
Comment 4 Ross Burton 2022-06-17 12:49:09 UTC
Patch on the list.
Comment 5 Ross Burton 2022-06-23 14:47:49 UTC
Fixed in oe-core efac044cabdbe77556a0b9903595fd602f39ac8d.