File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub use benchmark::{
15
15
use database:: { ArtifactIdNumber , CollectionId , Connection } ;
16
16
17
17
use crate :: utils:: git:: get_rustc_perf_commit;
18
- use crate :: { run_command_with_output , CollectorCtx } ;
18
+ use crate :: { command_output , CollectorCtx } ;
19
19
20
20
mod benchmark;
21
21
mod profile;
@@ -218,15 +218,7 @@ fn execute_runtime_benchmark_binary(
218
218
command. args ( [ "--include" , & filter. include . join ( "," ) ] ) ;
219
219
}
220
220
221
- let output = run_command_with_output ( & mut command) ?;
222
- if !output. status . success ( ) {
223
- return Err ( anyhow:: anyhow!(
224
- "Process finished with exit code {}\n {}" ,
225
- output. status. code( ) . unwrap_or( -1 ) ,
226
- String :: from_utf8_lossy( & output. stderr)
227
- ) ) ;
228
- }
229
-
221
+ let output = command_output ( & mut command) ?;
230
222
let reader = BufReader :: new ( Cursor :: new ( output. stdout ) ) ;
231
223
Ok ( reader. lines ( ) . map ( |line| {
232
224
Ok ( line. and_then ( |line| Ok ( serde_json:: from_str :: < BenchmarkMessage > ( & line) ?) ) ?)
You can’t perform that action at this time.
0 commit comments