Skip to content

Commit 2003061

Browse files
committed
style: Format runner.py with black
Apply black formatting to runner.py for FLUSHALL changes from PR #320 to comply with CI code style checks.
1 parent 2ae2ae4 commit 2003061

File tree

1 file changed

+17
-5
lines changed
  • redis_benchmarks_specification/__runner__

1 file changed

+17
-5
lines changed

redis_benchmarks_specification/__runner__/runner.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,13 +2672,20 @@ def delete_temporary_files(
26722672
if not success:
26732673
logging.error(f"Memtier benchmark failed: {stderr}")
26742674
# Clean up database after failure (timeout or error)
2675-
if args.flushall_on_every_test_end or args.flushall_on_every_test_start:
2676-
logging.warning("Benchmark failed - cleaning up database with FLUSHALL")
2675+
if (
2676+
args.flushall_on_every_test_end
2677+
or args.flushall_on_every_test_start
2678+
):
2679+
logging.warning(
2680+
"Benchmark failed - cleaning up database with FLUSHALL"
2681+
)
26772682
try:
26782683
for r in redis_conns:
26792684
r.flushall()
26802685
except Exception as e:
2681-
logging.error(f"FLUSHALL failed after benchmark failure: {e}")
2686+
logging.error(
2687+
f"FLUSHALL failed after benchmark failure: {e}"
2688+
)
26822689
# Continue with the test but log the failure
26832690
client_container_stdout = f"ERROR: {stderr}"
26842691

@@ -3025,8 +3032,13 @@ def delete_temporary_files(
30253032
test_result = False
30263033

30273034
# Clean up database after exception to prevent contamination of next test
3028-
if args.flushall_on_every_test_end or args.flushall_on_every_test_start:
3029-
logging.warning("Exception caught - cleaning up database with FLUSHALL")
3035+
if (
3036+
args.flushall_on_every_test_end
3037+
or args.flushall_on_every_test_start
3038+
):
3039+
logging.warning(
3040+
"Exception caught - cleaning up database with FLUSHALL"
3041+
)
30303042
try:
30313043
for r in redis_conns:
30323044
r.flushall()

0 commit comments

Comments
 (0)