File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -407,9 +407,8 @@ def run(self) -> None:
407407 if self .args .worktree :
408408 self .worktree_mode ()
409409
410- test_root = Path (self .test_cfg .tests_root )
411- if test_root .exists ():
412- leftover_trace_files = list (test_root .glob ("*.trace" ))
410+ if not self .args .replay_test and self .test_cfg .tests_root .exists ():
411+ leftover_trace_files = list (self .test_cfg .tests_root .glob ("*.trace" ))
413412 if leftover_trace_files :
414413 logger .debug (f"Cleaning up { len (leftover_trace_files )} leftover trace file(s) from previous runs" )
415414 cleanup_paths (leftover_trace_files )
@@ -586,9 +585,8 @@ def cleanup_temporary_paths(self) -> None:
586585 paths_to_cleanup = [self .test_cfg .concolic_test_root_dir , self .replay_tests_dir ]
587586 if self .trace_file :
588587 paths_to_cleanup .append (self .trace_file )
589- test_root = Path (self .test_cfg .tests_root )
590- if test_root .exists ():
591- for trace_file in test_root .glob ("*.trace" ):
588+ if self .test_cfg .tests_root .exists ():
589+ for trace_file in self .test_cfg .tests_root .glob ("*.trace" ):
592590 if trace_file not in paths_to_cleanup :
593591 paths_to_cleanup .append (trace_file )
594592 cleanup_paths (paths_to_cleanup )
You can’t perform that action at this time.
0 commit comments