aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-06-15 11:15:31 +0100
committerMike McQuaid2013-06-15 11:15:31 +0100
commit43b85e58656a7036e43ff064c834c8ba73b7b401 (patch)
treef1a6baa007d1fcf13bb132a4e7052c05e2e5570c /Library
parent52a935d5bc63751935cc92fcfdd73f280955b066 (diff)
downloadbrew-43b85e58656a7036e43ff064c834c8ba73b7b401.tar.bz2
brew-test-bot: further tweak pull request handling.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index b0b97c791..2b9fada1c 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -152,7 +152,8 @@ class Test
@start_branch = current_branch
# Use Jenkins environment variables if present.
- if ENV['GIT_PREVIOUS_COMMIT'] and ENV['GIT_COMMIT']
+ if ENV['GIT_PREVIOUS_COMMIT'] and ENV['GIT_COMMIT'] \
+ and not ENV['ghprbPullId']
diff_start_sha1 = shorten_revision ENV['GIT_PREVIOUS_COMMIT']
diff_end_sha1 = shorten_revision ENV['GIT_COMMIT']
test "brew update" if current_branch == "master"
@@ -171,6 +172,8 @@ class Test
pull_id = ENV['ghprbPullId']
@url = "https://github.com/#{github_repo}/pull/#{pull_id}"
@hash = nil
+ else
+ puts "Invalid 'ghprbPullId' environment variable value!"
end
end