brew-test-bot: don't repeat SHA-1 if identical.

This commit is contained in:
Mike McQuaid 2013-05-26 01:39:59 +01:00
parent 1856f8eadf
commit aecdcf768b

View File

@ -160,7 +160,11 @@ class Test
end
if @hash == 'HEAD'
@name = "#{diff_start_sha1}-#{diff_end_sha1}"
if diff_start_sha1 == diff_end_sha1
@name = diff_end_sha1
else
@name = "#{diff_start_sha1}-#{diff_end_sha1}"
end
elsif @hash
test "git checkout #{@hash}"
diff_start_sha1 = "#{@hash}^"