Skip to content

gh-81793: Skip tests for os.link(follow_links=) on Android - #133386

Closed
serhiy-storchaka wants to merge 2 commits into
python:mainfrom
serhiy-storchaka:test-link-follow_symlinks
Closed

gh-81793: Skip tests for os.link(follow_links=) on Android#133386
serhiy-storchaka wants to merge 2 commits into
python:mainfrom
serhiy-storchaka:test-link-follow_symlinks

Conversation

@serhiy-storchaka

@serhiy-storchakaserhiy-storchaka commented May 4, 2025

Copy link
Copy Markdown
Member

@serhiy-storchaka

Copy link
Copy Markdown
MemberAuthor

Example of failure: https://buildbot.python.org/#/builders/1594/builds/2228/steps/8/logs/stdio

======================================================================
ERROR: test_link_follow_symlinks (test.test_posix.PosixTester.test_link_follow_symlinks) [no follow_symlinks]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_posix.py", line 1537, in test_link_follow_symlinks
posix.link(symlink, link)
~~~~~~~~~~^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '@test_1785_tmpæsymlink' -> '@test_1785_tmpælink'
======================================================================
ERROR: test_link_follow_symlinks (test.test_posix.PosixTester.test_link_follow_symlinks) [follow_symlinks=False]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_posix.py", line 1548, in test_link_follow_symlinks
posix.link(symlink, link, follow_symlinks=False)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '@test_1785_tmpæsymlink' -> '@test_1785_tmpælink_nofollow'
======================================================================
ERROR: test_link_follow_symlinks (test.test_posix.PosixTester.test_link_follow_symlinks) [follow_symlinks=True]
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.14/test/test_posix.py", line 1560, in test_link_follow_symlinks
posix.link(symlink, link, follow_symlinks=True)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '@test_1785_tmpæsymlink' -> '@test_1785_tmpælink_following'
----------------------------------------------------------------------

Oh, it also fails without follow_symlinks.

@serhiy-storchaka

Copy link
Copy Markdown
MemberAuthor

!buildbot Android

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 312e193 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133386%2Fmerge

The command will test the builders whose names match following regular expression: Android

The builders matched are:

  • AMD64 Android PR
  • aarch64 Android PR

@serhiy-storchaka
serhiy-storchaka deleted the test-link-follow_symlinks branch May 4, 2025 18:00
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core reviewskip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@serhiy-storchaka@bedevere-bot