build/justfile: fix _test Say for selectors

This commit is contained in:
Paul Stemmet 2022-04-08 13:52:51 +00:00
parent a4ce525c15
commit 31330b7734
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
1 changed files with 2 additions and 2 deletions

View File

@ -126,11 +126,11 @@ bump-version to: (_bump-cargo-version "Cargo.toml" trim_start_match(to, "v")) ch
# ~~~ Private recipes ~~~
# Run cargo test with the given suite, profile, features and selector (if any)
_test $suite=None $profile=Profile $features=Features selector=None:
_test $suite=None $profile=Profile $features=Features $selector=None:
@$Say "Running tests" \
"${suite:+{{C_GREEN}}suite:{{C_YELLOW}}$suite{{C_RESET}}}" \
"${features:+{{C_GREEN}}features:{{C_YELLOW}}$features{{C_RESET}}}" \
{{ if selector != None { C_GREEN + "selector:" + C_YELLOW + selector + C_RESET } else { None } }} \
"${selector:+{{C_GREEN}}selector:{{C_YELLOW}}$selector{{C_RESET}}}" \
| xargs
@$Cargo test \
${suite:+--$suite} \