mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-13 08:52:15 +00:00
test: separate fake OTLP executable from load logs
Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user