Skip to content

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