mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #22248 from arekf/issue-22232
Fix #22232: rake test tasks exit status code
This commit is contained in:
commit
a61e4ae58d
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
* Fix setting exit status code for rake test tasks. The exit status code
|
||||
was not set when tests were fired with `rake`. Now, it is being set and it matches
|
||||
behavior of running tests via `rails` command (`rails test`), so no matter if
|
||||
`rake test` or `rails test` command is used the exit code will be set.
|
||||
|
||||
*Arkadiusz Fal*
|
||||
|
||||
* Add Command infrastructure to replace rake.
|
||||
|
||||
Also move `rake dev:cache` to new infrastructure. You'll need to use
|
||||
|
|
|
@ -57,7 +57,9 @@ module Minitest
|
|||
# as the patterns would also contain the other Rake tasks.
|
||||
def self.rake_run(patterns) # :nodoc:
|
||||
@rake_patterns = patterns
|
||||
run
|
||||
passed = run
|
||||
exit passed unless passed
|
||||
passed
|
||||
end
|
||||
|
||||
def self.plugin_rails_init(options)
|
||||
|
|
Loading…
Reference in a new issue