-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Make minimum frame rate configurable in Python WebRTC/AVSM tests #72369
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -789,6 +789,7 @@ def convert_args_to_matter_config(args: argparse.Namespace): | |
| config.endpoint = args.endpoint # This can be None, the get_endpoint function allows the tests to supply a default | ||
| config.restart_flag_file = args.restart_flag_file | ||
| config.debug = args.debug | ||
| config.min_frame_rate = args.min_frame_rate | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How would a client normally get this information? If this needs to be provided manually, wouldn't that make it a trial and error game for any real client attempting to interact with a camera? |
||
|
|
||
| # Map CLI arg to the current config field name used by tests | ||
| config.pipe_name = args.app_pipe | ||
|
|
@@ -975,6 +976,8 @@ def parse_matter_test_args(argv: Optional[list[str]] = None): | |
| help="The full path of the file to use to signal a restart to the app") | ||
| basic_group.add_argument('--debug', action="store_true", default=False, | ||
| help="Run the script in debug mode. This is needed to capture attribute dump at end of test modules if there are problems found during testing.") | ||
| basic_group.add_argument('--min-frame-rate', type=int, default=30, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that this only applies to camera tests, does this need to be a top-level argument? Why not use the int-arg input for this? |
||
| help='Minimum frame rate for video stream allocation (default: 30)') | ||
|
pidarped marked this conversation as resolved.
|
||
| basic_group.add_argument('--timeout', type=int, help="Test timeout in seconds") | ||
| basic_group.add_argument("--PICS", help="PICS file path", type=str) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
You need to also update the check where this value is read back from the allocated streams.