Skip to content

Commit 7cb0954

Browse files
committed
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.
1 parent b0f1b2a commit 7cb0954

File tree

1 file changed

+1
-1
lines changed
  • lib/metasploit/framework/spec/constants

1 file changed

+1
-1
lines changed

lib/metasploit/framework/spec/constants/each.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def self.define_task
9898
if LOG_PATHNAME.exist?
9999
$stderr.puts "No leaks were cleaned by `#{self}.configured!`. Remove it from `spec/spec_helper.rb` so it " \
100100
"does not interfere with contexts that persist loaded modules for entire context and clean up " \
101-
"modules in `after(:all)`."
101+
"modules in `after(:all)` and then `rm log/remove-cleaner`"
102102

103103
exit(1)
104104
end

0 commit comments

Comments
 (0)