-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
brew tests: filter out vendor/ #2203
Conversation
Remove We could add |
Adding it to version control or explicitly running |
Makes sense to me 👍 |
@MikeMcQuaid No, same issue. To be honest I initially pinned this yesterday on an upstream problem at some level, because |
If I
...
|
@DomT4 does it happen if you checkout a tag? 1.1.10, 1.1.9, 1.1.8, ... wondering if this is a bisectable problem. |
OK. So you should be able to do
And then tell it |
🎉 |
Library/Homebrew/dev-cmd/tests.rb
Outdated
@@ -57,6 +57,7 @@ def tests | |||
ENV["SEED"] = ARGV.next if ARGV.include? "--seed" | |||
|
|||
files = Dir.glob("test/**/*_{spec,test}.rb") | |||
.reject { |p| p =~ %r{^test/vendor} } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this test/vendor/bundle
, since there is at least one test actually testing vendored code (plist
, currently still in cask-tests
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
This smooths over the transition for users who have an existing bundle config in this location due to having gems installed at the old path.
94d39dd
to
2e47d46
Compare
Was it intentional here that the repo becomes "dirty" after
The change is: diff --git a/Library/Homebrew/test/.bundle/config b/Library/Homebrew/test/.bundle/config
index dcf3d1c4c..e451829e9 100644
--- a/Library/Homebrew/test/.bundle/config
+++ b/Library/Homebrew/test/.bundle/config
@@ -1,3 +1,3 @@
---
BUNDLE_PATH: "../vendor/bundle"
-BUNDLE_DISABLE_SHARED_GEMS: '1'
+BUNDLE_DISABLE_SHARED_GEMS: "true" |
brew tests
with your changes locally?Not sure why this doesn't consistently repro for me, but I noticed that
brew tests
was failing for me because the test glob was picking up test files from the bundled gems installed intest/vendor/bundle
.