ssl-opt.sh: Correct print format for test cases' names

Avoid printing an extra space when using the --list-test-cases
option.

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
This commit is contained in:
Tomás González 2023-09-04 10:41:37 +01:00
parent 12787c9ba5
commit 378e364c3c

View file

@ -879,15 +879,16 @@ print_name() {
fi fi
LINE="$LINE$1" LINE="$LINE$1"
printf "%s " "$LINE"
if [ "$LIST_TESTS" -gt 0 ]; then if [ "$LIST_TESTS" -gt 0 ]; then
printf "\n" printf "%s\n" "$LINE"
else return
LEN=$(( 72 - `echo "$LINE" | wc -c` ))
for i in `seq 1 $LEN`; do printf '.'; done
printf ' '
fi fi
printf "%s " "$LINE"
LEN=$(( 72 - `echo "$LINE" | wc -c` ))
for i in `seq 1 $LEN`; do printf '.'; done
printf ' '
} }
# record_outcome <outcome> [<failure-reason>] # record_outcome <outcome> [<failure-reason>]