File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
redis_benchmarks_specification/__runner__ Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments