aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2014-10-27 13:02:30 +0000
committerMike McQuaid2014-10-27 13:02:30 +0000
commit6d189ed6eea925bbd0bd4a66eda396c9a81530f1 (patch)
treefa3850100f277f6504925865a7219f4949e6c5a2 /Library/Homebrew
parent8b14b3ca06a8f19339ea28d8c9365929083c54b5 (diff)
downloadhomebrew-6d189ed6eea925bbd0bd4a66eda396c9a81530f1.tar.bz2
brew-test-bot: add fail-fast option.
Allows easier testing of failures due to bad state.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 518abc0cc..d6ad6c60b 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -14,6 +14,7 @@
# --local: Ask Homebrew to write verbose logs under ./logs/ and set HOME to ./home/
# --tap=<tap>: Use the git repository of the given tap
# --dry-run: Just print commands, don't run them.
+# --fail-fast: Immediately exit on a failing step.
#
# --ci-master: Shortcut for Homebrew master branch CI options.
# --ci-pr: Shortcut for Homebrew pull request CI options.
@@ -134,6 +135,8 @@ module Homebrew
end
FileUtils.rm(log) unless ARGV.include? "--keep-logs"
end
+
+ exit 1 if ARGV.include?("--fail-fast") && @status == :failed
end
end