Append to RUBYOPT for debugger compatibility
MSP-11147 When using Rubymine's debugger, the tests would run and say there were no tests and no break points would be hit. It was determined that this was due the Rubymine's debugger injecting itself into RUBYOPTS and only working if it's first in RUBYOPT, which means that 'metasploit:framework:spec:threads:suite' must inject '-Ilib -rmetasploit/framework/spec/threads/logger' at the end of RUBOPT instead of the beginning.bug/bundler_fix
parent
2fc6154ce9
commit
535f69b56d
|
@ -118,7 +118,8 @@ module Metasploit
|
||||||
threads_logger_pathname = parent_pathname.join('logger')
|
threads_logger_pathname = parent_pathname.join('logger')
|
||||||
load_pathname = parent_pathname.parent.parent.parent.parent.expand_path
|
load_pathname = parent_pathname.parent.parent.parent.parent.expand_path
|
||||||
|
|
||||||
ENV['RUBYOPT'] = "-I#{load_pathname} -r#{threads_logger_pathname} #{ENV['RUBYOPT']}"
|
# Must append to RUBYOPT or Rubymine debugger will not work
|
||||||
|
ENV['RUBYOPT'] = "#{ENV['RUBYOPT']} -I#{load_pathname} -r#{threads_logger_pathname}"
|
||||||
end
|
end
|
||||||
|
|
||||||
Rake::Task.define_task(spec: 'metasploit:framework:spec:threads:suite')
|
Rake::Task.define_task(spec: 'metasploit:framework:spec:threads:suite')
|
||||||
|
|
Loading…
Reference in New Issue