File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl Executor for MemoryExecutor {
6262 let memtrack_path = std:: env:: var ( "CODSPEED_MEMTRACK_BINARY" )
6363 . unwrap_or_else ( |_| "codspeed-memtrack" . to_string ( ) ) ;
6464
65- info ! ( "Validating memtrack binary at path: {}" , memtrack_path ) ;
65+ info ! ( "Validating memtrack binary at path: {memtrack_path}" ) ;
6666 let output = Command :: new ( & memtrack_path) . arg ( "--version" ) . output ( ) ?;
6767 if !output. status . success ( ) {
6868 bail ! ( "codspeed-memtrack command is not available or failed to execute" ) ;
@@ -98,7 +98,7 @@ impl Executor for MemoryExecutor {
9898 } ;
9999
100100 let status = run_command_with_log_pipe_and_callback ( cmd, on_process_started) . await ?;
101- debug ! ( "cmd exit status: {:?}" , status ) ;
101+ debug ! ( "cmd exit status: {status :?}" ) ;
102102
103103 if !status. success ( ) {
104104 bail ! ( "failed to execute memory tracker process: {status}" ) ;
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ impl Executor for WallTimeExecutor {
202202 } ;
203203
204204 let status = status. map_err ( |e| anyhow ! ( "failed to execute the benchmark process. {e}" ) ) ?;
205- debug ! ( "cmd exit status: {:?}" , status ) ;
205+ debug ! ( "cmd exit status: {status :?}" ) ;
206206
207207 if !status. success ( ) {
208208 bail ! ( "failed to execute the benchmark process: {status}" ) ;
@@ -248,7 +248,7 @@ mod tests {
248248 let mut script_file = tempfile:: Builder :: new ( )
249249 . suffix ( ".sh" )
250250 . permissions ( rwx)
251- . keep ( true )
251+ . disable_cleanup ( true )
252252 . tempfile ( ) ?;
253253 script_file. write_all ( content. as_bytes ( ) ) ?;
254254
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ pub struct PerfFifo {
99
1010impl PerfFifo {
1111 pub fn new ( ) -> anyhow:: Result < Self > {
12- let fifo_dir = tempfile:: tempdir ( ) ?. into_path ( ) ;
12+ let fifo_dir = tempfile:: tempdir ( ) ?. keep ( ) ;
1313 let fifo = GenericFifo :: new (
1414 & fifo_dir. join ( "codspeed_perf.ctl.fifo" ) ,
1515 & fifo_dir. join ( "codspeed_perf.ack.fifo" ) ,
You can’t perform that action at this time.
0 commit comments