Skip to content

Commit

Permalink
ci: Fix rust test compilation (linkerd#12366)
Browse files Browse the repository at this point in the history
We expect to run test compilation independently of test execution, but a change
to test runner has dropped support for --message-format=json (in favor of
--message-format=libtest-json, etc).

This commit updates the test runner invocation to stop formatting output in
these steps.

Signed-off-by: Mark S <the@wondersmith.dev>
  • Loading branch information
olix0r authored and the-wondersmith committed Apr 24, 2024
1 parent 08c198f commit b188d9d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ rs-doc *flags:
rs-test-build:
{{ _cargo-test }} --no-run --frozen \
--workspace --exclude=linkerd-policy-test \
{{ _features }} \
{{ _fmt }}
{{ _features }}

# Run Rust unit tests
rs-test *flags:
Expand Down Expand Up @@ -144,7 +143,7 @@ policy-test-run *flags:

# Build the policy tests without running them.
policy-test-build:
cd policy-test && {{ _cargo-test }} --no-run {{ _fmt }}
cd policy-test && {{ _cargo-test }} --no-run

# Delete all test namespaces and remove linkerd from the cluster.
policy-test-cleanup:
Expand Down

0 comments on commit b188d9d

Please sign in to comment.