Skip to content

Commit 2764dc2

Browse files
committed
Filter the location to a local path relative to the project
this helps in ci when using the musl container which will end up with the wrong path Signed-off-by: James Sturtevant <[email protected]>
1 parent 15bfa7f commit 2764dc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ test-rust-tracing target=default-target features="":
209209
# note that trace-dump doesn't run on MUSL target as of now
210210
TRACE_OUTPUT="$({{ cargo-cmd }} run --profile={{ if target == "debug" { "dev" } else { target } }} {{ target-triple-flag }} --example hello-world --features {{ if features =="" {"trace_guest"} else { "trace_guest," + features } }})" && \
211211
TRACE_FILE="$(echo "$TRACE_OUTPUT" | grep -oE 'Creating trace file at: [^ ]+' | awk -F': ' '{print $2}')" && \
212+
TRACE_FILE="$(echo "$TRACE_OUTPUT" | grep -oE 'Creating trace file at: [^ ]+' | awk -F': ' '{print $2}' | sed -E 's|^(trace/[^ ]+\.trace)$|./\1|; s|.*/(trace/[^ ]+\.trace)$|./\1|')" && \
212213
echo "$TRACE_OUTPUT" && \
213214
if [ -z "$TRACE_FILE" ]; then \
214215
echo "Error: Could not extract trace file path from output." >&2 ; \

0 commit comments

Comments
 (0)