-
Notifications
You must be signed in to change notification settings - Fork 5k
Reuse context from 'find_first_device_or_exit()' & hw reset test stability improvment #13177
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
Conversation
|
|
||
| ctx = rs.context() | ||
| device = test.find_first_device_or_exit(); | ||
| device, ctx = test.find_first_device_or_exit(); |
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.
| dev, ctx = test.find_first_device_or_exit() | ||
| ctx.set_devices_changed_callback( device_changed ) | ||
| log.out( "Sending HW-reset command" ) | ||
| time.sleep(1) |
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.
Please shift this line about the comment
Something like:
# allowing some time for the system to stabilize
time.sleep(1)
log.out( "Sending HW-reset command" )
dev.hardware_reset()
|
|
||
| max_dev_enum_time = get_max_enum_rime_by_device( dev ) | ||
| log.out( "Sending HW-reset command" ) | ||
| time.sleep(1) |
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.
Same as before
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.
done
|
We really need to work on our descriptions... |
|
What's the sleep for? |
Trying to make the LibCI tests more robust. |

Tracked on: [LRS-1170]