Skip to content

Commit 47ca91e

Browse files
committed
fix ci tracing tests silently failing
Signed-off-by: Doru Blânzeanu <[email protected]>
1 parent 9a2860a commit 47ca91e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ test-rust-tracing target=default-target features="":
205205
just move-rust-guests {{ target }}
206206
# Run hello-world example with tracing enabled to get the trace output
207207
# Capture the trace file path and print use it afterwards to run cargo run -p trace_dump
208-
cargo run --profile={{ if target == "debug" { "dev" } else { target } }} --example hello-world --features {{ if features =="" {'trace_guest'} else { "trace_guest," + features } }} \
209-
| sed -n 's/.*Creating trace file at: \(.*\)/\1/p' \
210-
| xargs -I {} cargo run -p trace_dump ./{{ simpleguest_source }}/{{ target }}/simpleguest {} list_frames
208+
OUTPUT=$(cargo run --profile={{ if target == "debug" { "dev" } else { target } }} --example hello-world --features {{ if features =="" {'trace_guest'} else { "trace_guest," + features } }}) && \
209+
FILE=$(echo $OUTPUT | sed -n 's/.*Creating trace file at: \(.*\)/\1/p') && \
210+
cargo run -p trace_dump ./{{ simpleguest_source }}/{{ target }}/simpleguest $FILE list_frames
211211

212212
# Rebuild the tracing guests without the tracing feature
213213
# This is to ensure that the tracing feature does not affect the other tests

src/tests/rust_guests/witguest/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)