aboutsummaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorPeter Wilmott <p@p8952.info>2015-01-26 15:40:04 +0000
committerPeter Wilmott <p@p8952.info>2015-01-26 15:40:04 +0000
commitfbce81c34e7c3950e44b1f600580cd9ae2f3a750 (patch)
treeb318270b2ab9956f2518480ed919916f17d372e7 /web/lib
parentKeep table columns a uniform size (diff)
downloadruby-tinderbox-fbce81c34e7c3950e44b1f600580cd9ae2f3a750.tar.gz
ruby-tinderbox-fbce81c34e7c3950e44b1f600580cd9ae2f3a750.tar.bz2
ruby-tinderbox-fbce81c34e7c3950e44b1f600580cd9ae2f3a750.zip
Update colours for partial QA passes
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/repoman.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/lib/repoman.rb b/web/lib/repoman.rb
index b845d00..7cb6e97 100644
--- a/web/lib/repoman.rb
+++ b/web/lib/repoman.rb
@@ -22,6 +22,7 @@ def run_repoman(provisioner)
packages << "#{category} #{name} #{version}#{revision} #{target} #{next_target}"
end
+ packages = packages.sample(100)
packages = "'" + packages.join("' '") + "'"
begin
@@ -48,6 +49,8 @@ def update_repoman
current_result = 'unknown'
if current_log.include?('If everyone were like you, I\'d be out of business!')
current_result = 'passed'
+ elsif current_log.include?('You\'re only giving me a partial QA payment?')
+ current_result = 'partial'
elsif current_log.include?('Make your QA payment on time and you\'ll never see the likes of me.')
current_result = 'failed'
end
@@ -55,6 +58,8 @@ def update_repoman
next_result = 'unknown'
if next_log.include?('If everyone were like you, I\'d be out of business!')
next_result = 'passed'
+ elsif next_log.include?('You\'re only giving me a partial QA payment?')
+ next_result = 'partial'
elsif next_log.include?('Make your QA payment on time and you\'ll never see the likes of me.')
next_result = 'failed'
end