Skip to content

Commit

Permalink
fix PR IntelRealSense#12911: sleep if test is not live
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed May 15, 2024
1 parent 53b5d60 commit 66337ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unit-tests/run-unit-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,10 @@ def test_wrapper( test, configuration=None, repetition=1, sns=None ):
log.debug_unindent() # just to make it stand out a little more
log.d( f' Failed; retry #{retry}' )
log.debug_indent()
if no_reset:
if no_reset or not sns:
time.sleep(1) # small pause between tries
else:
devices.enable_only( serial_numbers, recycle=True )
devices.enable_only( sns, recycle=True )
if test_wrapper_( test, configuration, repetition, retry, sns ):
return True
log._n_errors -= 1
Expand Down

0 comments on commit 66337ca

Please sign in to comment.