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

tests: Do not write to current working directory #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ppisar
Copy link

@ppisar ppisar commented Feb 26, 2024

Fedora installs tests to validate the installed modules later. The intallation location for the tests is read only. Git-Repository tests already utilize File::Temp to use a proper temporary directory. The only exception was t/05-try_git.t:

Error in tempdir() using t/XXXXXXXXXX: Could not create directory t/FHkns_IVOr: Permission denied at t/05-try_git.t line 71.
# Looks like your test exited with 13 just after 20.
t/05-try_git.t ............. Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 16/36 subtests

This patch fixes the test to prefer a platform-provided location for temporary files (e.g. /tmp) over the current working directory.

Fedora installs tests to validate the installed modules later. The
intallation location for the tests is read only. Git-Repository tests
already utilize File::Temp to use a proper temporary directory. The
only exception was t/05-try_git.t:

    Error in tempdir() using t/XXXXXXXXXX: Could not create directory t/FHkns_IVOr: Permission denied at t/05-try_git.t line 71.
    # Looks like your test exited with 13 just after 20.
    t/05-try_git.t ............. Dubious, test returned 13 (wstat 3328, 0xd00)
    Failed 16/36 subtests

This patch fixes the test to prefer a platform-provided location for temporary
files (e.g. /tmp) over the current working directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant