From fe0abb7bd7a649426aa64ecd176938c916e48725 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 15 Jul 2023 15:09:12 +0200 Subject: [PATCH] test: pin rust version with rustup Signed-off-by: CrazyMax --- src/test-cargo.bats | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/test-cargo.bats b/src/test-cargo.bats index ec0e905..9244cea 100755 --- a/src/test-cargo.bats +++ b/src/test-cargo.bats @@ -47,8 +47,17 @@ testHelloCargoRustup() { @test "install-rustup" { add clang lld curl ca-certificates assert_success - run sh -c "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --no-modify-path --profile minimal" + run sh -c "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=1.69.0 --no-modify-path --profile=minimal" assert_success + export "PATH=/root/.cargo/bin:$PATH" + run rustup --version 2>/dev/null + assert_success + assert_output --partial "rustup " + run rustc --version + assert_success + assert_output --partial "rustc " + echo "# $(rustup --version 2>/dev/null)" >&3 + echo "# $(rustc --version)" >&3 } @test "amd64-hellocargo-rustup" {