Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed May 9, 2024
1 parent 7c750ce commit f216af9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion unit-tests/py/rspy/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ def finish( on_fail=LOG ):
log.i("Test passed")
test_in_progress = None


def print_separator():
"""
For use only in-between test-cases, this will separate them in some visual way so as
Expand Down
4 changes: 2 additions & 2 deletions unit-tests/run-unit-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,13 @@ def test_wrapper( test, configuration=None, repetition=1, sns=None ):
global n_tests
n_tests += 1
for retry in range( test.config.retries + 1 ):
if test_wrapper_( test, configuration, repetition, retry, sns ) and log.n_errors() == 0:
if test_wrapper_( test, configuration, repetition, retry, sns ):
return True
log._n_errors -= 1
if no_reset:
time.sleep(1) # small pause between tries
elif retry < test.config.retries:
log.d("retry", retry + 1, "out of", test.config.retries)
log.w("retry", retry + 1, "out of", test.config.retries)
devices.enable_only(serial_numbers, recycle=True)

log._n_errors += 1
Expand Down

0 comments on commit f216af9

Please sign in to comment.