Use known-working versions for tests (#900)

This commit is contained in:
Félix Saparelli 2023-03-13 18:11:29 +13:00 committed by GitHub
parent 5f1d5ce559
commit e89b8e2463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View file

@ -8,7 +8,7 @@ export CARGO_HOME=$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')
export PATH="$CARGO_HOME/bin:$PATH"
## Test --disable-strategies
"./$1" binstall --no-confirm --disable-strategies quick-install,compile cargo-update
"./$1" binstall --no-confirm --disable-strategies quick-install,compile cargo-update@11.1.2
exit_code="$?"
if [ "$exit_code" != 94 ]; then
@ -17,7 +17,7 @@ if [ "$exit_code" != 94 ]; then
fi
## Test --strategies
"./$1" binstall --no-confirm --strategies crate-meta-data cargo-update
"./$1" binstall --no-confirm --strategies crate-meta-data cargo-update@11.1.2
exit_code="$?"
if [ "$exit_code" != 94 ]; then
@ -26,4 +26,4 @@ if [ "$exit_code" != 94 ]; then
fi
## Test compile-only strategy
"./$1" binstall --no-confirm --strategies compile cargo-quickinstall
"./$1" binstall --no-confirm --strategies compile cargo-quickinstall@0.2.8