-
Notifications
You must be signed in to change notification settings - Fork 129
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
Send all progress logging messages to stderr. #171
Send all progress logging messages to stderr. #171
Conversation
To keep this consistent with the rest of the program, messages like "Successfully deleted cache." should also be printed on stderr. Maybe even the "page not found" output, but I am not sure about that one. (@dbrgn ?) @dmaahs2017 As you can see, the tests have to be updated accordingly, but that should be a quick fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good thing to do (no matter how we handle the paging issue). However, the tests need an update (expect the string in stderr, not stdout).
@dmaahs2017 can you update the tests as well?
- updated tests to expect these messages in stderr instead of stdout - changed test_markdown_rendering to no longer rely on the tldr pages repo. Instead manually adding a known page to use in this test, because it failed due to the tldr pages repo updating this command (so it no longer matched our expected output, which shouldn't cause our tests to fail).
Ready for re-review. @niklasmohrin @dbrgn. I grepped the src files for all the |
.assert() | ||
.success() | ||
.stdout(contains("Successfully updated cache.")); | ||
testenv.add_entry("tar", include_str!("tar-markdown.expected")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
Adresses #169.
repo. Instead manually adding a known page to use in this test,
because it failed due to the tldr pages repo updating this command (so
it no longer matched our expected output, which shouldn't cause our
tests to fail).