From 6c25da56958c3bb46a4997950de18412345f1d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gonz=C3=A1lez?= Date: Thu, 31 Aug 2023 14:08:57 +0100 Subject: [PATCH] Fix coverage builds for different providers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, when iterating among the different providers, the variable UNIT_TEST_FEATURES is being appended a provider in each iteration. This makes the any iteration of the coverage build to build for not only the provider of the current iteration but also for the previous providers. * Only build for the provider of the current iteration in the coverage build. Signed-off-by: Tomás González --- ci.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci.sh b/ci.sh index bf5cf992..7654f90b 100755 --- a/ci.sh +++ b/ci.sh @@ -250,7 +250,7 @@ if [ "$PROVIDER_NAME" = "coverage" ]; then rustup toolchain install 1.66.0 PROVIDERS="trusted-service mbed-crypto tpm pkcs11" EXCLUDES="fuzz/*,e2e_tests/*,src/providers/cryptoauthlib/*,src/authenticators/jwt_svid_authenticator/*" - UNIT_TEST_FEATURES="unix-peer-credentials-authenticator,direct-authenticator" + UNIT_TEST_COMMON_FEATURES="unix-peer-credentials-authenticator,direct-authenticator" # Install tarpaulin cargo +1.66.0 install cargo-tarpaulin @@ -260,7 +260,7 @@ if [ "$PROVIDER_NAME" = "coverage" ]; then # Set up run PROVIDER_NAME=$provider TEST_FEATURES="--features=$provider-provider" - UNIT_TEST_FEATURES="$UNIT_TEST_FEATURES,$provider-provider" + UNIT_TEST_FEATURES="$UNIT_TEST_COMMON_FEATURES,$provider-provider" cp $(pwd)/e2e_tests/provider_cfg/$provider/config.toml $CONFIG_PATH mkdir -p reports/$provider