aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-09-15 14:22:58 +0100
committerMike McQuaid2014-09-15 14:23:12 +0100
commitbabcad25e3ed63fc21bb0e75aa33e4aa81834b96 (patch)
tree97642dc1035b7bac80d6c7e185f407fcf67442f0 /Library
parente717508b7b63b5bb0f84b2c62d3c621857baa67c (diff)
downloadbrew-babcad25e3ed63fc21bb0e75aa33e4aa81834b96.tar.bz2
brew-test-bot: add --dry-run mode.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index c1eccb2ff..725084713 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -13,6 +13,7 @@
# --HEAD: Run brew install with --HEAD
# --local: Ask Homebrew to write verbose logs under ./logs/
# --tap=<tap>: Use the git repository of the given tap
+# --dry-run: Just print commands, don't run them.
#
# --ci-master: Shortcut for Homebrew master branch CI options.
# --ci-pr: Shortcut for Homebrew pull request CI options.
@@ -99,6 +100,11 @@ class Step
def run
puts_command
+ if ARGV.include? "--dry-run"
+ puts
+ @status = :passed
+ return
+ end
start_time = Time.now