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

use a tempdir in test_bucket_storage #28819

Merged

Conversation

apfitzge
Copy link
Contributor

@apfitzge apfitzge commented Nov 15, 2022

Problem

The test didn't clean up it's "temp" directory. If you change users this causes the test to fail since the directory won't have correct permissions.

Ran into this when I switched from using sol user to my personal username on a machine. Unlikely to cause many other people issues, but easy enough to fix.

Summary of Changes

Use an actual tempdir so it cleans itself up.

Fixes #

@apfitzge apfitzge marked this pull request as ready for review November 15, 2022 17:00
Copy link
Contributor

@jeffwashington jeffwashington left a comment

Choose a reason for hiding this comment

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

lgtm

@apfitzge apfitzge merged commit 42cc76e into solana-labs:master Nov 15, 2022
@apfitzge apfitzge deleted the bugfix/test_bucket_storage_tempdir branch November 15, 2022 20:26
xiangzhu70 pushed a commit to xiangzhu70/solana that referenced this pull request Nov 16, 2022
gnapoli23 pushed a commit to gnapoli23/solana that referenced this pull request Dec 16, 2022
nickfrosty pushed a commit to nickfrosty/solana that referenced this pull request Jan 4, 2023
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.

2 participants