mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-02 16:13:27 +00:00
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:
parent
12787c9ba5
commit
378e364c3c
@ -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>]
|
||||
|
Loading…
x
Reference in New Issue
Block a user