Skip to content

Commit 3b201e1

Browse files
committed
fix perf path, and sleep
1 parent 1be124a commit 3b201e1

File tree

1 file changed

+5
-3
lines changed
  • opentelemetry-user-events-logs/src

1 file changed

+5
-3
lines changed

opentelemetry-user-events-logs/src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,16 @@ mod tests {
297297
// Run perf record for duration_secs seconds
298298
let perf_status = Command::new("sudo")
299299
.args([
300-
"timeout",
301-
"-s",
302-
"SIGINT",
303300
&duration_secs.to_string(),
304301
"perf",
305302
"record",
303+
"-o",
304+
"/tmp/perf.data",
306305
"-e",
307306
event,
307+
"--",
308+
"sleep",
309+
&duration_secs.to_string(),
308310
])
309311
.status()?;
310312

0 commit comments

Comments
 (0)