test: separate fake OTLP executable from load logs

Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
This commit is contained in:
discord9
2026-09-08 21:17:25 +08:00
parent fc65f23dc5
commit 65c87daf59
@@ -547,11 +547,12 @@ mod tests {
.unwrap();
let ready_path = temp_dir.path().join("ready");
let pid_path = temp_dir.path().join("pid");
let otelgen_path = temp_dir.path().join("otelgen");
let otelgen_path = temp_dir.path().join("bin").join("otelgen");
fs::create_dir_all(otelgen_path.parent().unwrap()).unwrap();
fs::write(
&otelgen_path,
r#"#!/bin/sh
cd "$(dirname "$0")" || exit 1
cd "$(dirname "$0")/.." || exit 1
echo "$$" > pid
: > ready
exec sleep 5