Add manual removal of `log/remove-cleaner` to Each removal

MSP-11130

When removing `Metasploit::Framework::Spec::Constants::Each.configure`
from spec/spec_helper.rb,
`Metasploit::Framework::Spec::Constants::Each.define_task` will see the
`log/remove-cleaner` from the last run unless it is manually removed.
bug/bundler_fix
Luke Imhoff 2014-11-04 10:10:28 -06:00
parent b0f1b2a1f7
commit 7cb0954a6e
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ module Metasploit::Framework::Spec::Constants::Each
if LOG_PATHNAME.exist? if LOG_PATHNAME.exist?
$stderr.puts "No leaks were cleaned by `#{self}.configured!`. Remove it from `spec/spec_helper.rb` so it " \ $stderr.puts "No leaks were cleaned by `#{self}.configured!`. Remove it from `spec/spec_helper.rb` so it " \
"does not interfere with contexts that persist loaded modules for entire context and clean up " \ "does not interfere with contexts that persist loaded modules for entire context and clean up " \
"modules in `after(:all)`." "modules in `after(:all)` and then `rm log/remove-cleaner`"
exit(1) exit(1)
end end