From 4ce27cb49b3522ef038b2f64c95e68d0b6958079 Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Mon, 2 Dec 2024 15:51:07 +0000 Subject: [PATCH] ssl-opt: CONFIGS_ENABLED list should always end with a space char. Signed-off-by: Minos Galanakis --- tests/ssl-opt.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index ef6c607341..0c3484402a 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -233,9 +233,11 @@ get_options "$@" # Read boolean configuration options from mbedtls_config.h for easy and quick # testing. Skip non-boolean options (with something other than spaces # and a comment after "#define SYMBOL"). The variable contains a -# space-separated list of symbols. +# space-separated list of symbols. The list should always be +# terminated by a single whitespace character, otherwise the last entry +# will not get matched by the parsing regex. if [ "$LIST_TESTS" -eq 0 ];then - CONFIGS_ENABLED=" $(echo `$P_QUERY -l` )" + CONFIGS_ENABLED=" $(echo `$P_QUERY -l` ) " else P_QUERY=":" CONFIGS_ENABLED=""