Skip to content

A platform for community discussion. Free, open, simple.

DEV: Suppress verbose command failure output in plugin:turbo_spec (#25952)

Martin Brennan5f119c57e8f4
diff --git a/lib/tasks/plugin.rake b/lib/tasks/plugin.rake
index e20c121f0ee..5bf89c0af07 100644
--- a/lib/tasks/plugin.rake
+++ b/lib/tasks/plugin.rake
@@ -199,7 +199,9 @@ def spec(plugin, parallel: false, argv: nil)
cmd = parallel ? "bin/turbo_rspec" : "bin/rspec"
Rake::FileUtilsExt.verbose(!parallel) do
- sh("LOAD_PLUGINS=1 #{cmd} #{files.join(" ")} #{params.join(" ")}")
+ sh("LOAD_PLUGINS=1 #{cmd} #{files.join(" ")} #{params.join(" ")}") do |ok, status|
+ fail "Spec command failed with status (#{status.exitstatus})" if !ok
+ end
end
else
abort "No specs found."