Skip to content

Commit

Permalink
Merge pull request #1219 from SRetip/test_command_fix_temp_dir
Browse files Browse the repository at this point in the history
RADY (willbe/`.test`) : fix temp dir
  • Loading branch information
Wandalen authored Mar 20, 2024
2 parents 5a4ea35 + 72a2fc1 commit dbffffa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion module/move/willbe/src/entity/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,16 @@ mod private
spinner.enable_steady_tick( std::time::Duration::from_millis( 100 ) );
spinner
};
let cmd_rep = _run( dir, args_t.form() );
let args = args_t.form();
let temp_dir = args.temp_directory_path.clone();
let cmd_rep = _run( dir, args );
r.lock().unwrap().tests.insert( variant.clone(), cmd_rep.map_err( | e | e.0 ) );
#[ cfg( feature = "progress_bar" ) ]
options.progress_bar_feature.as_ref().unwrap().progress_bar.inc( 1 );
if let Some( path ) = temp_dir
{
std::fs::remove_dir_all( path ).unwrap();
}
}
);
}
Expand Down

0 comments on commit dbffffa

Please sign in to comment.