Remove prior log/metasploit/framework/spec/threads/suite.log

MSP-11147
bug/bundler_fix
Luke Imhoff 2014-11-05 15:51:43 -06:00
parent d4d710cc3a
commit d66c98b34d
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,10 @@ module Metasploit
def self.define_task
Rake::Task.define_task('metasploit:framework:spec:threads:suite') do
if Metasploit::Framework::Spec::Threads::Suite::LOG_PATHNAME.exist?
Metasploit::Framework::Spec::Threads::Suite::LOG_PATHNAME.delete
end
parent_pathname = Pathname.new(__FILE__).parent
threads_logger_pathname = parent_pathname.join('logger')
load_pathname = parent_pathname.parent.parent.parent.parent.expand_path
@ -57,6 +61,8 @@ module Metasploit
end
Rake::Task.define_task(spec: 'metasploit:framework:spec:threads:suite')
Rake::Task.define_task()
end
end
end