Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented May 4, 2025

@serhiy-storchaka
Copy link
Member Author

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
Member Author

!buildbot Android

@bedevere-bot
Copy link

🤖 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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants