Skip to content
Draft
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
8 changes: 4 additions & 4 deletions src/tests/ftest/rebuild/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ def __run_rebuild_interactive(self, pool, cont_ior, ior,
pool.wait_for_rebuild_to_start(interval=1)

self.log_step(f'{exclude_method} - Manually stop rebuild')
for i in range(3):
for i in range(4):
try:
pool.rebuild_stop()
break
except CommandFailure as error:
if i == 2 or 'DER_NONEXIST' not in str(error):
if i == 3 or 'DER_NONEXIST' not in str(error):
raise
self.log.info('Assuming rebuild is not started yet. Retrying in 3 seconds...')
time.sleep(3)
Expand Down Expand Up @@ -161,12 +161,12 @@ def __run_rebuild_interactive(self, pool, cont_ior, ior,
pool.wait_for_rebuild_to_start(interval=1)

self.log_step(f'{reint_method} - Manually stop rebuild')
for i in range(3):
for i in range(4):
try:
pool.rebuild_stop()
break
except CommandFailure as error:
if i == 2 or 'DER_NONEXIST' not in str(error):
if i == 3 or 'DER_NONEXIST' not in str(error):
raise
self.log.info('Assuming rebuild is not started yet. Retrying in 3 seconds...')
time.sleep(3)
Expand Down
Loading