Skip to content

Commit

Permalink
Merge pull request #117 from crazy-max/fix-test-rust
Browse files Browse the repository at this point in the history
test: pin rust version with rustup
  • Loading branch information
crazy-max authored Jul 24, 2023
2 parents ba5b1e0 + fe0abb7 commit dbf7ddd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/test-cargo.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit dbf7ddd

Please sign in to comment.