Skip to content

Update test_console_log. NFC. #13088

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

Merged
merged 1 commit into from
Dec 22, 2020
Merged

Update test_console_log. NFC. #13088

merged 1 commit into from
Dec 22, 2020

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Dec 22, 2020

  • Use btest_exit (avoid REPORT_RESULT)
  • Fix formatting
  • Return zero on success

- Use btest_exit (avoid REPORT_RESULT)
- Fix formatting
- Return zero on success
@sbc100 sbc100 requested a review from tlively December 22, 2020 15:13
@sbc100
Copy link
Collaborator Author

sbc100 commented Dec 22, 2020

View diff with ignore whitespace.


DoubleTest();

#ifdef REPORT_RESULT
Copy link
Member

Choose a reason for hiding this comment

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

Where was this defined? Is it still defined somewhere? Can we get rid of it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry I should have given more context.

Traditionally when you run browser test self.btest the test running will inject the report_result.h header (using -include) and expect you to call REPORT_RESULT. However, in recent months I've added self.btest_exit which just relies on the exit code instead. It doesn't inject any headers and it doesn't use this macro. See #12928 and #12977.

@sbc100 sbc100 merged commit af9a5a7 into master Dec 22, 2020
@sbc100 sbc100 deleted the update_console_log_test branch December 22, 2020 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants