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

fixed small issues with devices.py #8403

Merged
merged 1 commit into from
Feb 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions unit-tests/py/rspy/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def _wait_until_removed( serial_numbers, timeout = 5 ):
"""
Wait until the given serial numbers are all offline

:param serial_numbers: A collection of serial-numbers to wait until removed
:param timeout: Number of seconds of maximum wait time
:return: True if all have come offline; False if timeout was reached
"""
Expand All @@ -213,12 +214,12 @@ def _wait_until_removed( serial_numbers, timeout = 5 ):
time.sleep( 1 )


def _wait_for( serial_numbers, timeout = 5, wait_for_recycle = False ):
def _wait_for( serial_numbers, timeout = 5 ):
"""
Wait until the given serial numbers are all online

:param serial_numbers: A collection of serial-numbers to wait for
:param timeout: Number of seconds of maximum wait time
:param wait_for_recycle: If True, will wait until all devices are first removed
:return: True if all have come online; False if timeout was reached
"""
global _device_by_sn
Expand Down