Replace zombie executable with --zombie flag
The zombie executable was symlinked, symlinks do not work properly under jruby and rbx.
This commit is contained in:
parent
3e47dd363b
commit
97e069ed96
3 changed files with 5 additions and 4 deletions
|
@ -1,14 +1,14 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
trap('INT') do |status|
|
||||
exit! 128+status
|
||||
exit! 128 + status
|
||||
end
|
||||
|
||||
require 'mutant'
|
||||
|
||||
namespace =
|
||||
if File.basename($0) == 'zombie'
|
||||
$stderr.puts('Detected zombie environment...')
|
||||
if ARGV.include?('--zombie')
|
||||
$stderr.puts('Running mutant zombified!')
|
||||
Mutant::Zombifier.zombify
|
||||
Zombie::Mutant
|
||||
else
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
mutant
|
|
@ -202,6 +202,8 @@ module Mutant
|
|||
opts.separator ''
|
||||
opts.separator 'Strategies:'
|
||||
|
||||
opts.on('--zombie', 'Run mutant zombified')
|
||||
|
||||
add_strategies(opts)
|
||||
add_options(opts)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue