Skip to content

Commit 1698a0b

Browse files
committed
Make it easier to pass arguments to test executable
So option arguments like `--test-threads=1` that must come after `--` can be passed through `just` to `cross`, while still being able to customize options like `--features` that go before it.
1 parent 09157c4 commit 1698a0b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

justfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -234,17 +234,17 @@ cross-image target:
234234
-f etc/docker/Dockerfile.test-cross etc/docker/test-cross-context
235235

236236
# Test another platform with `cross`
237-
cross-test target *cargo-test-args: (cross-image target)
237+
cross-test target options test-options: (cross-image target)
238238
CROSS_CONFIG=etc/docker/test-cross.toml NO_PRELOAD_CXX=1 \
239239
cross test --workspace --no-fail-fast --target {{ target }} \
240-
{{ cargo-test-args }} -- --skip realpath::fuzzed_timeout
240+
{{ options }} -- --skip realpath::fuzzed_timeout {{ test-options }}
241241

242242
# Test s390x with `cross`
243-
cross-test-s390x: (cross-test 's390x-unknown-linux-gnu')
243+
cross-test-s390x: (cross-test 's390x-unknown-linux-gnu' '' '')
244244

245245
# Test Android with `cross` (max-pure)
246-
cross-test-android: (cross-test 'armv7-linux-androideabi' \
247-
'--no-default-features' '--features' 'max-pure')
246+
cross-test-android: (cross-test 'armv7-linux-androideabi'
247+
'--no-default-features --features max-pure' '')
248248

249249
# Run `cargo diet` on all crates to see that they are still in bounds
250250
check-size:

0 commit comments

Comments
 (0)