aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-02-23 09:12:18 +0000
committerGitHub2017-02-23 09:12:18 +0000
commit1a436b4d24d50011bc444cf5d2016f5c0f808dec (patch)
tree9659fbe8f1ed557e74ddaf7fde9c3c8ff8821da2 /Library/Homebrew/dev-cmd
parent5e9057500419d1a2b41efe784e9f12ae232e7f6e (diff)
parent3f8e52e5742cdd3d992ddee79741a4c4e45ab4bf (diff)
downloadbrew-1a436b4d24d50011bc444cf5d2016f5c0f808dec.tar.bz2
Merge branch 'master' into mirror_audit
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/bump-formula-pr.rb3
-rw-r--r--Library/Homebrew/dev-cmd/tests.rb6
2 files changed, 5 insertions, 4 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
index ea2daf1c4..bfe9c7776 100644
--- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb
+++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -80,7 +80,8 @@ module Homebrew
def fetch_pull_requests(formula)
GitHub.issues_for_formula(formula.name, tap: formula.tap).select do |pr|
- pr["html_url"].include?("/pull/")
+ pr["html_url"].include?("/pull/") &&
+ /(^|\s)#{Regexp.quote(formula.name)}(:|\s|$)/i =~ pr["title"]
end
rescue GitHub::RateLimitExceededError => e
opoo e.message
diff --git a/Library/Homebrew/dev-cmd/tests.rb b/Library/Homebrew/dev-cmd/tests.rb
index 244fbe027..6276d1c1b 100644
--- a/Library/Homebrew/dev-cmd/tests.rb
+++ b/Library/Homebrew/dev-cmd/tests.rb
@@ -57,9 +57,7 @@ module Homebrew
ENV["SEED"] = ARGV.next if ARGV.include? "--seed"
files = Dir.glob("test/**/*_{spec,test}.rb")
- .reject { |p| !OS.mac? && p.start_with?("test/os/mac/") }
- .reject { |p| !OS.mac? && p.start_with?("test/cask/") }
- .reject { |p| p.start_with?("test/vendor/bundle/") }
+ .reject { |p| !OS.mac? && p =~ %r{^test/(os/mac|cask)(/.*|_(test|spec)\.rb)$} }
test_args = []
test_args << "--trace" if ARGV.include? "--trace"
@@ -84,6 +82,8 @@ module Homebrew
"--format", "ParallelTests::RSpec::RuntimeLogger",
"--out", "tmp/parallel_runtime_rspec.log"
]
+ spec_args << "--tag" << "~needs_macos" unless OS.mac?
+
run_tests "parallel_rspec", spec_files, spec_args
if (fs_leak_log = HOMEBREW_LIBRARY_PATH/"tmp/fs_leak.log").file?