Singnal killer status NOT success status
success depends on mutation type!
This commit is contained in:
parent
b898917219
commit
13719eb0d3
2 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ module Mutant
|
|||
def run
|
||||
pid = fork do
|
||||
killer = @killer.new(strategy, mutation)
|
||||
exit(killer.success? ? CLI::EXIT_SUCCESS : CLI::EXIT_FAILURE)
|
||||
exit(killer.killed? ? CLI::EXIT_SUCCESS : CLI::EXIT_FAILURE)
|
||||
end
|
||||
|
||||
status = Process.wait2(pid).last
|
||||
|
|
|
@ -20,9 +20,9 @@ module Mutant
|
|||
# TODO: replace with real streams from configuration
|
||||
require 'stringio'
|
||||
null = StringIO.new
|
||||
args = command_line_arguments
|
||||
argv = command_line_arguments
|
||||
begin
|
||||
!::RSpec::Core::Runner.run(args, null, null).zero?
|
||||
!::RSpec::Core::Runner.run(argv, null, null).zero?
|
||||
rescue StandardError
|
||||
true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue