From d0c644db69d128ebc4337b8d81642cc39ae8fa63 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Mon, 27 Mar 2023 13:36:13 +0200 Subject: [PATCH] test: minor refactoring Signed-off-by: Valerio Setti --- tests/scripts/all.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 754b083acc..31df467daf 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -2414,8 +2414,7 @@ psa_crypto_config_accel_all_curves_except_one () { scripts/config.py set $BUILTIN_CURVE # Accelerate all curves listed in "crypto_config.h" (skipping the ones that # are commented out) - for CURVE in $(sed -n 's/^#define \(PSA_WANT_ECC_[0-9A-Z_a-z]*\).*/\1/p' <"$CRYPTO_CONFIG_H"); do - CURVE=$(echo $CURVE | sed 's/PSA_WANT_//') + for CURVE in $(sed -n 's/^#define PSA_WANT_\(ECC_[0-9A-Z_a-z]*\).*/\1/p' <"$CRYPTO_CONFIG_H"); do loc_accel_list="$loc_accel_list $CURVE" done