From babcad25e3ed63fc21bb0e75aa33e4aa81834b96 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 15 Sep 2014 14:22:58 +0100 Subject: [PATCH] brew-test-bot: add --dry-run mode. --- Library/Contributions/cmd/brew-test-bot.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index c1eccb2ffa..725084713a 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=: 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