From b621bd5ec34708fe496c86303330a9a6fda6f012 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Mon, 31 Mar 2025 16:15:32 +0000 Subject: [PATCH 1/2] Fix typo Signed-off-by: Simon Brand --- tss-esapi/src/structures/lists/digest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tss-esapi/src/structures/lists/digest.rs b/tss-esapi/src/structures/lists/digest.rs index bb816791b..c827da1b0 100644 --- a/tss-esapi/src/structures/lists/digest.rs +++ b/tss-esapi/src/structures/lists/digest.rs @@ -14,7 +14,7 @@ pub struct DigestList { impl DigestList { pub const MAX_SIZE: usize = 8; - /// Creates a nnew empty DigestList + /// Creates a new empty DigestList pub const fn new() -> Self { DigestList { digests: Vec::new(), From 08e8dd7a1dbd9df5293f6d9793c31fa2babb5506 Mon Sep 17 00:00:00 2001 From: Simon Brand Date: Mon, 31 Mar 2025 16:16:55 +0000 Subject: [PATCH 2/2] integration_tests: abort when rustup install fails When there is an error fetching the script and the result is empty, bash does not complain. The result is an undetected broken image. Signed-off-by: Simon Brand --- tss-esapi/tests/Dockerfile-ubuntu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tss-esapi/tests/Dockerfile-ubuntu b/tss-esapi/tests/Dockerfile-ubuntu index b94bbc645..881d2b73e 100644 --- a/tss-esapi/tests/Dockerfile-ubuntu +++ b/tss-esapi/tests/Dockerfile-ubuntu @@ -2,7 +2,7 @@ FROM ghcr.io/tpm2-software/ubuntu-20.04:latest AS base FROM base AS rust-toolchain # Install Rust toolchain -RUN curl https://sh.rustup.rs -sSf | bash -s -- -y +RUN (curl https://sh.rustup.rs -sSf || exit 1) | bash -s -- -y ENV PATH="/root/.cargo/bin:${PATH}" FROM rust-toolchain AS tpm2-tss