Bug 14840

Summary: AB-INT PTEST ARM: python3 testSockName ptest failure
Product: [QA/Testing] Package Testing (ptest) Reporter: Alexandre Belloni <alexandre.belloni>
Component: ptestAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandre.belloni, randy.macleod
Version: unspecified   
Target Milestone: 4.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.