mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Add a test that --strategies
overrides disabled-strategies
in
Cargo.toml
This commit is contained in:
parent
f2a184de0e
commit
80895b8de6
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,7 @@ fi
|
|||
## Test compile-only strategy
|
||||
"./$1" binstall --no-confirm --strategies compile cargo-quickinstall@0.2.8
|
||||
|
||||
## Test --disable-strategies
|
||||
## Test `disabled-strategies=["compile", "quick-install"]` in Cargo.toml
|
||||
set +e
|
||||
|
||||
"./$1" binstall --no-confirm --manifest-path "manifests/strategies-test-Cargo.toml" cargo-update@11.1.2
|
||||
|
@ -49,3 +49,6 @@ if [ "$exit_code" != 94 ]; then
|
|||
echo "Expected exit code 94, but actual exit code $exit_code"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
## Test --strategies overriding `disabled-strategies=["compile"]` in Cargo.toml
|
||||
"./$1" binstall --no-confirm --manifest-path "manifests/strategies-test-Cargo.toml" --strategies compile cargo-update@11.1.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue