aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/tests.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb
index a796e2f38..27be1cd2f 100644
--- a/Library/Homebrew/cmd/tests.rb
+++ b/Library/Homebrew/cmd/tests.rb
@@ -22,9 +22,12 @@ module Homebrew
system "bundle", "install", "--path", "vendor/bundle"
end
+ # Make it easier to reproduce test runs.
+ ENV["SEED"] = ARGV.next if ARGV.include? "--seed"
+
args = []
args << "--trace" if ARGV.include? "--trace"
- args += ARGV.named
+ args += ARGV.named.select { |v| v[/^TEST(OPTS)?=/] }
system "bundle", "exec", "rake", "test", *args
Homebrew.failed = !$?.success?