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
LINE="$LINE$1"
printf "%s " "$LINE"
if [ "$LIST_TESTS" -gt 0 ]; then
printf "\n"
else
LEN=$(( 72 - `echo "$LINE" | wc -c` ))
for i in `seq 1 $LEN`; do printf '.'; done
printf ' '
printf "%s\n" "$LINE"
return
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>]