Skip to content
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

test: fix unit test case sensitivity #993

Merged
merged 4 commits into from
Feb 19, 2025

Conversation

achrafmag
Copy link
Member

Handling filesystem specific case sensitivity, by creating temporary files and checking if they point towards same file using their inodes. This fixes #992

Handling filesystem specific case sensitivity, by creating temporary files and checking if they point towards same file using their inodes. This fixes oracle#992

Signed-off-by: Achraf Maghous <achraf.maghous@oracle.com>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 16, 2025
@behnazh-w behnazh-w changed the title chore: fixing unit test case sensitivity test: fix unit test case sensitivity Feb 16, 2025
Using tmp_path made the use of st_ino obselete, now we create paths using touch method

Signed-off-by: Achraf Maghous <achraf.maghous@oracle.com>
Fixed checking case sensitivity using tmp_path, without needing to clean up created temporary files by using the existing tmp_path function argument already provided in test_get_local_artifact_paths_succeeded_pypi

Signed-off-by: Achraf Maghous <achraf.maghous@oracle.com>
…ivity

Using tempfile builtin package in order to check case sensitivity by observing the behavior of  when creating lower and upper directory

Signed-off-by: Achraf Maghous <achraf.maghous@oracle.com>
Copy link
Member

@tromai tromai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks

@behnazh-w behnazh-w merged commit 4fcd7e8 into oracle:staging Feb 19, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants