aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask
diff options
context:
space:
mode:
authorAlyssa Ross2016-09-20 14:57:08 +0100
committerAlyssa Ross2016-09-20 15:48:00 +0100
commit869fb0214971f3dbcccbe1915702ffc7e7d69d16 (patch)
tree6387cb0b1eda2faec16e1d3eb82a4971d3691497 /Library/Homebrew/cask
parent651303f62df934d61dd3c317b84b417537d91d8b (diff)
downloadbrew-869fb0214971f3dbcccbe1915702ffc7e7d69d16.tar.bz2
tests, cask-tests: serialize stdout on CI
Diffstat (limited to 'Library/Homebrew/cask')
-rwxr-xr-xLibrary/Homebrew/cask/cmd/brew-cask-tests.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/cmd/brew-cask-tests.rb b/Library/Homebrew/cask/cmd/brew-cask-tests.rb
index 019c3ca24..2523061a2 100755
--- a/Library/Homebrew/cask/cmd/brew-cask-tests.rb
+++ b/Library/Homebrew/cask/cmd/brew-cask-tests.rb
@@ -1,7 +1,10 @@
require "English"
def run_tests(executable, files, args = [])
- system "bundle", "exec", executable, "--", *args, "--", *files
+ opts = []
+ opts << "--serialize-stdout" if ENV["CI"]
+
+ system "bundle", "exec", executable, *opts, "--", *args, "--", *files
end
repo_root = Pathname(__FILE__).realpath.parent.parent