Skip to content

Commit

Permalink
Fix coverage builds for different providers
Browse files Browse the repository at this point in the history
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 <tomasagustin.gonzalezorlando@arm.com>
  • Loading branch information
tgonzalezorlandoarm committed Sep 1, 2023
1 parent e2a342e commit 6c25da5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 6c25da5

Please sign in to comment.