-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
limit output of buildtest report #1130
Conversation
@Xiangs18 this looks good. Can you share the output i think this looks perfect. I presume this won't work with terse mode |
Hi @shahzebsiddiqui, this won't work with terse mode buildtest rt --terse --count=1 |
Hi @shahzebsiddiqui, now it works with terse mode as well. Thank you! |
tests/cli/test_report.py
Outdated
def test_report_limited_rows(): | ||
class args: | ||
filter = None | ||
format = None | ||
start = None | ||
end = None | ||
failure = None | ||
latest = False | ||
oldest = False | ||
report_file = None | ||
pager = None | ||
terse = None | ||
no_header = None | ||
report_subcommand = None | ||
helpfilter = False | ||
helpformat = False | ||
count = 5 | ||
|
||
report_cmd(args) |
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.
Can you add another test with terse mode so just create another invocation to args
. Alternately we may want to rewrite this test to directly call Report
class directly. Either way works
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.
LGTM
Hi @shahzebsiddiqui, please see if further changes are required. Thank you!