Skip to content

Commit 7669674

Browse files
committed
fix: dont use sudo for perf run
1 parent 0a8d45f commit 7669674

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/run/runner/wall_time/executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl WallTimeExecutor {
3939
.join(" ");
4040
let uid = nix::unistd::Uid::current().as_raw();
4141
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}"))
42+
Ok(format!("systemd-run --scope --slice=codspeed.slice --same-dir --uid={uid} --gid={gid} {setenv} -- {bench_cmd}"))
4343
}
4444
}
4545

@@ -75,7 +75,7 @@ impl Executor for WallTimeExecutor {
7575
let status = if let Some(perf) = &self.perf {
7676
perf.run(cmd, &bench_cmd).await
7777
} else {
78-
cmd.args(["-c", &bench_cmd]);
78+
cmd.args(["-c", &format!("sudo {bench_cmd}")]);
7979
debug!("cmd: {:?}", cmd);
8080

8181
run_command_with_log_pipe(cmd).await

0 commit comments

Comments
 (0)