Skip to content

Commit 5b23807

Browse files
committed
gh-145548: Log vsock CID in test.pythoninfo
1 parent d931725 commit 5b23807

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/pythoninfo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,10 @@ def collect_test_socket(info_add):
751751
if name.startswith('HAVE_')]
752752
copy_attributes(info_add, test_socket, 'test_socket.%s', attributes)
753753

754+
# Get IOCTL_VM_SOCKETS_GET_LOCAL_CID of /dev/vsock
755+
cid = test_socket.get_cid()
756+
info_add('test_socket.get_cid', cid)
757+
754758

755759
def collect_support(info_add):
756760
try:

0 commit comments

Comments
 (0)