dev-cmd/tests: better output for BuildPulse failures
This commit is contained in:
parent
f3cf599971
commit
f4067ac5fe
@ -62,11 +62,12 @@ module Homebrew
|
|||||||
|
|
||||||
ohai "Sending test results to BuildPulse"
|
ohai "Sending test results to BuildPulse"
|
||||||
|
|
||||||
result = quiet_system Formula["buildpulse-test-reporter"].opt_bin/"buildpulse-test-reporter",
|
system_command! Formula["buildpulse-test-reporter"].opt_bin/"buildpulse-test-reporter",
|
||||||
|
args: [
|
||||||
"submit", "#{HOMEBREW_LIBRARY_PATH}/test/junit",
|
"submit", "#{HOMEBREW_LIBRARY_PATH}/test/junit",
|
||||||
"--account-id", ENV.fetch("HOMEBREW_BUILDPULSE_ACCOUNT_ID"),
|
"--account-id", ENV.fetch("HOMEBREW_BUILDPULSE_ACCOUNT_ID"),
|
||||||
"--repository-id", ENV.fetch("HOMEBREW_BUILDPULSE_REPOSITORY_ID")
|
"--repository-id", ENV.fetch("HOMEBREW_BUILDPULSE_REPOSITORY_ID")
|
||||||
odie "Failed to send test results to BuildPulse!" unless result
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
def changed_test_files
|
def changed_test_files
|
||||||
@ -191,10 +192,11 @@ module Homebrew
|
|||||||
else
|
else
|
||||||
system "bundle", "exec", "rspec", *bundle_args, "--", *files
|
system "bundle", "exec", "rspec", *bundle_args, "--", *files
|
||||||
end
|
end
|
||||||
|
success = $CHILD_STATUS.success?
|
||||||
|
|
||||||
run_buildpulse if use_buildpulse?
|
run_buildpulse if use_buildpulse?
|
||||||
|
|
||||||
return if $CHILD_STATUS.success?
|
return if success
|
||||||
|
|
||||||
Homebrew.failed = true
|
Homebrew.failed = true
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user