We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40765d commit c738f41Copy full SHA for c738f41
crates/cargo-codspeed/src/run.rs
@@ -11,6 +11,7 @@ use codspeed::walltime::get_raw_result_dir_from_workspace_root;
11
use glob::glob;
12
use std::{
13
io::{self, Write},
14
+ os::unix::process::ExitStatusExt,
15
path::{Path, PathBuf},
16
};
17
@@ -157,10 +158,16 @@ pub fn run_benches(
157
158
if status.success() {
159
Ok(())
160
} else {
- Err(anyhow!(
161
+ let code = status
162
+ .code()
163
+ .or(status.signal().map(|s| 128 + s))
164
+ .unwrap_or(1);
165
+
166
+ eprintln!(
167
"failed to execute the benchmark process, exit code: {}",
- status.code().unwrap_or(1)
- ))
168
+ code
169
+ );
170
+ std::process::exit(code);
171
}
172
})?;
173
eprintln!("Done running {}", bench_name);
0 commit comments