Skip to content

Commit

Permalink
fix cleanup invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
dothebart committed May 17, 2024
1 parent e66cc66 commit 54ff200
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions release_tester/arangodb/starter/deployments/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,18 +917,19 @@ def clear_data_impl(self):
assert starter.arangosh, "check: this starter doesn't have an arangosh!"
frontend_found = True
arangosh = starter.arangosh
for db_name, one_shard, count_offset in self.makedata_databases():
for db_name, one_shard, count_offset in self.makedata_databases()[::-1]:
print(db_name, one_shard, count_offset)
try:
print(count_offset)
starter.arangosh.clear_test_data(
self.name,
starter.supports_foxx_tests,
args=["--countOffset", str(count_offset)],
database_name=db_name,
one_shard=one_shard,
)
break
except CliExecutionException as exc:
print("cleardata failed!")
print(exc)
if not self.cfg.verbose:
print(exc.execution_result[1])
self.ask_continue_or_exit(
Expand All @@ -937,7 +938,8 @@ def clear_data_impl(self):
False,
exc,
)
return
print("Done cleanup")
return
if not frontend_found:
raise Exception("no frontend found.")

Expand Down

0 comments on commit 54ff200

Please sign in to comment.