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

Mirror real installation directory structure for tests #19134

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

Rylan12
Copy link
Member

@Rylan12 Rylan12 commented Jan 23, 2025

As pointed out by @alebcay in #19116, the directory structure we use when running brew tests doesn't quite mimic a regular installation. This PR modifies the test structure to more closely match.

Specifically, some of the directories that usually live under HOMEBREW_PREFIX/var/homebrew were, instead, siblings to the prefix. Now, they go in the correct places. The cellar directory also defaulted to being a prefix sibling, but now goes in the regular HOMEBREW_PREFIX/Cellar directory.

Some directories (like the cache, logs, and temp directories) don't necessarily fall under the prefix, so I've left those as siblings like before.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Jan 23, 2025
Merged via the queue into master with commit 0a422da Jan 23, 2025
28 checks passed
@MikeMcQuaid MikeMcQuaid deleted the improve-test-directory-structure branch January 23, 2025 08:56
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