Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update error message for meterpreter file contents test #18661

Conversation

adfoster-r7
Copy link
Contributor

Update error message for meterpreter file contents test

Verification

Statically verify that the code change makes sense

@@ -158,7 +158,7 @@ def test_file
final_contents = read_file(datastore['BaseFileName'])
ret &&= final_contents == 'foobarbaz'
unless ret
vprint_status("Didn't read what we wrote, actual file on target: |#{file_contents.inspect}| - #{file_contents.bytes.inspect}")
vprint_status("Didn't read what we wrote, actual file on target: |#{final_contents.inspect}| - #{final_contents.bytes.inspect}")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original issue from CI in the error scenario:

[read] [-] [should append text files] FAILED: should append text files
[read] [-] [should append text files] Exception: NameError: undefined local variable or method `file_contents' for #<Module:post/test/file datastore=[...etc...etc..
Did you mean?  final_contents

@dwelch-r7 dwelch-r7 merged commit 5e59389 into rapid7:master Jan 4, 2024
34 checks passed
@dwelch-r7 dwelch-r7 added the rn-no-release-notes no release notes label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn-no-release-notes no release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants