Skip to content

Commit 310a012

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 ff29650 commit 310a012

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
@@ -228,17 +228,17 @@ cross-image target:
228228
-f etc/docker/Dockerfile.test-cross etc/docker/test-cross-context
229229

230230
# Test another platform with `cross`
231-
cross-test target *cargo-test-args: (cross-image target)
231+
cross-test target options test-options: (cross-image target)
232232
CROSS_CONFIG=etc/docker/test-cross.toml NO_PRELOAD_CXX=1 \
233233
cross test --workspace --no-fail-fast --target {{ target }} \
234-
{{ cargo-test-args }} -- --skip realpath::fuzzed_timeout
234+
{{ options }} -- --skip realpath::fuzzed_timeout {{ test-options }}
235235

236236
# Test s390x with `cross`
237-
cross-test-s390x: (cross-test 's390x-unknown-linux-gnu')
237+
cross-test-s390x: (cross-test 's390x-unknown-linux-gnu' '' '')
238238

239239
# Test Android with `cross` (max-pure)
240-
cross-test-android: (cross-test 'armv7-linux-androideabi' \
241-
'--no-default-features' '--features' 'max-pure')
240+
cross-test-android: (cross-test 'armv7-linux-androideabi'
241+
'--no-default-features --features max-pure' '')
242242

243243
# Run cargo-diet on all crates to see that they are still in bound
244244
check-size:

0 commit comments

Comments
 (0)