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"
|
||||
|
||||
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",
|
||||
"--account-id", ENV.fetch("HOMEBREW_BUILDPULSE_ACCOUNT_ID"),
|
||||
"--repository-id", ENV.fetch("HOMEBREW_BUILDPULSE_REPOSITORY_ID")
|
||||
odie "Failed to send test results to BuildPulse!" unless result
|
||||
]
|
||||
end
|
||||
|
||||
def changed_test_files
|
||||
@ -191,10 +192,11 @@ module Homebrew
|
||||
else
|
||||
system "bundle", "exec", "rspec", *bundle_args, "--", *files
|
||||
end
|
||||
success = $CHILD_STATUS.success?
|
||||
|
||||
run_buildpulse if use_buildpulse?
|
||||
|
||||
return if $CHILD_STATUS.success?
|
||||
return if success
|
||||
|
||||
Homebrew.failed = true
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user