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

limit output of buildtest report #1130

Merged
merged 11 commits into from
Jun 30, 2022
Merged

limit output of buildtest report #1130

merged 11 commits into from
Jun 30, 2022

Conversation

Xiangs18
Copy link
Collaborator

Hi @shahzebsiddiqui, please see if further changes are required. Thank you!

Screen Shot 2022-06-30 at 11 35 06 AM

@Xiangs18 Xiangs18 linked an issue Jun 30, 2022 that may be closed by this pull request
8 tasks
@shahzebsiddiqui
Copy link
Member

@Xiangs18 this looks good. Can you share the output i think this looks perfect.

I presume this won't work with terse mode buildtest rt --terse --count=1

@Xiangs18
Copy link
Collaborator Author

Xiangs18 commented Jun 30, 2022

Hi @shahzebsiddiqui, this won't work with terse mode buildtest rt --terse --count=1
However, it works with pager mode buildtest rt --pager --count 1
If you wanna make it work with terse mode as well, I can include it.

@Xiangs18
Copy link
Collaborator Author

Hi @shahzebsiddiqui, now it works with terse mode as well. Thank you!

Comment on lines 238 to 256
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)
Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Screen Shot 2022-06-30 at 1 24 12 PM

@Xiangs18
Copy link
Collaborator Author

Screen Shot 2022-06-30 at 1 51 20 PM

Copy link
Member

@shahzebsiddiqui shahzebsiddiqui left a comment

Choose a reason for hiding this comment

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

LGTM

@shahzebsiddiqui shahzebsiddiqui merged commit 00abbee into devel Jun 30, 2022
@shahzebsiddiqui shahzebsiddiqui deleted the limitOutput branch June 30, 2022 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: limit output of buildtest report
2 participants