brew-test-bot: fix error detection logic.
This commit is contained in:
		
							parent
							
								
									b7c9025d93
								
							
						
					
					
						commit
						7989b2169f
					
				@ -591,12 +591,12 @@ module Homebrew
 | 
				
			|||||||
    if ARGV.named.empty?
 | 
					    if ARGV.named.empty?
 | 
				
			||||||
      # With no arguments just build the most recent commit.
 | 
					      # With no arguments just build the most recent commit.
 | 
				
			||||||
      test = Test.new('HEAD', tap)
 | 
					      test = Test.new('HEAD', tap)
 | 
				
			||||||
      any_errors = test.run
 | 
					      any_errors = !test.run
 | 
				
			||||||
      tests << test
 | 
					      tests << test
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
      ARGV.named.each do |argument|
 | 
					      ARGV.named.each do |argument|
 | 
				
			||||||
        test = Test.new(argument, tap)
 | 
					        test = Test.new(argument, tap)
 | 
				
			||||||
        any_errors = test.run or any_errors
 | 
					        any_errors ||= !test.run
 | 
				
			||||||
        tests << test
 | 
					        tests << test
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user