Repository navigation
test(tests): give the runtime folder directly in two tests - #6538
Merged
Merged
Conversation
…6533) platformdirs 4.14.8 accepts XDG_RUNTIME_DIR only below parents that no other user can replace. In the Service image test container the parents of tmp_path fail that check, so platformdirs falls back and the two tests fail. The tests now set user_runtime_path, as the test of a runtime folder in the current folder does, so they test the code of devops-cli and not the checks of platformdirs.
…ly in two tests
Owner
Author
|
Proof. Service Image Tests do not run on this pull request (the paths filter skips a change of tests only), so the failure condition was made locally: a pytest base folder with mode 0777 and no sticky bit, so the parents of
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
platformdirs 4.14.8 (#6506) accepts
XDG_RUNTIME_DIRonly below parents that no other user can replace. In the Service image test container the parents oftmp_pathfail that check, so platformdirs gives its own folder, and two tests oftests/core/test_process.pyfail on Service Image Tests shard 6. The code of devops-cli is right: it uses the folder that platformdirs gives. The two tests now setplatformdirs.user_runtime_path, as the test of a runtime folder in the current folder does, so they test devops-cli and not the checks of platformdirs.Closes #6533
Change:
openspec/changes/archive/2026-11-20-6533-runtime-folder-tests/