Merge pull request #8990 from MikeMcQuaid/update-test-debugging
update-test: improve debugging output.
This commit is contained in:
commit
c8fcd050c7
@ -114,11 +114,14 @@ module Homebrew
|
|||||||
safe_system "brew", "update", "--verbose"
|
safe_system "brew", "update", "--verbose"
|
||||||
actual_end_commit = Utils.popen_read("git", "rev-parse", branch).chomp
|
actual_end_commit = Utils.popen_read("git", "rev-parse", branch).chomp
|
||||||
if actual_end_commit != end_commit
|
if actual_end_commit != end_commit
|
||||||
|
start_log = Utils.popen_read("git", "log", "-1", "--decorate", "--oneline", start_commit).chomp
|
||||||
|
end_log = Utils.popen_read("git", "log", "-1", "--decorate", "--oneline", end_commit).chomp
|
||||||
|
actual_log = Utils.popen_read("git", "log", "-1", "--decorate", "--oneline", actual_end_commit).chomp
|
||||||
raise <<~EOS
|
raise <<~EOS
|
||||||
brew update didn't update #{branch}!
|
brew update didn't update #{branch}!
|
||||||
Start commit: #{start_commit}
|
Start commit: #{start_log}
|
||||||
Expected end commit: #{end_commit}
|
Expected end commit: #{end_log}
|
||||||
Actual end commit: #{actual_end_commit}
|
Actual end commit: #{actual_log}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user