We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a8d45f commit 7669674Copy full SHA for 7669674
1 file changed
src/run/runner/wall_time/executor.rs
@@ -39,7 +39,7 @@ impl WallTimeExecutor {
39
.join(" ");
40
let uid = nix::unistd::Uid::current().as_raw();
41
let gid = nix::unistd::Gid::current().as_raw();
42
- Ok(format!("sudo systemd-run --scope --slice=codspeed.slice --same-dir --uid={uid} --gid={gid} {setenv} -- {bench_cmd}"))
+ Ok(format!("systemd-run --scope --slice=codspeed.slice --same-dir --uid={uid} --gid={gid} {setenv} -- {bench_cmd}"))
43
}
44
45
@@ -75,7 +75,7 @@ impl Executor for WallTimeExecutor {
75
let status = if let Some(perf) = &self.perf {
76
perf.run(cmd, &bench_cmd).await
77
} else {
78
- cmd.args(["-c", &bench_cmd]);
+ cmd.args(["-c", &format!("sudo {bench_cmd}")]);
79
debug!("cmd: {:?}", cmd);
80
81
run_command_with_log_pipe(cmd).await
0 commit comments