mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-11 21:57:49 +00:00
Avoid using print_name when --list-test-cases is used
Signed-off-by: Tomás González <[email protected]>
This commit is contained in:
+3
-6
@@ -879,10 +879,6 @@ print_name() {
|
||||
fi
|
||||
|
||||
LINE="$LINE$1"
|
||||
if [ "$LIST_TESTS" -gt 0 ]; then
|
||||
printf "%s\n" "$LINE"
|
||||
return
|
||||
fi
|
||||
|
||||
printf "%s " "$LINE"
|
||||
LEN=$(( 72 - `echo "$LINE" | wc -c` ))
|
||||
@@ -1601,12 +1597,13 @@ run_test() {
|
||||
return
|
||||
fi
|
||||
|
||||
print_name "$NAME"
|
||||
|
||||
if [ "$LIST_TESTS" -gt 0 ]; then
|
||||
printf "%s\n" "$NAME"
|
||||
return
|
||||
fi
|
||||
|
||||
print_name "$NAME"
|
||||
|
||||
# Do we only run numbered tests?
|
||||
if [ -n "$RUN_TEST_NUMBER" ]; then
|
||||
case ",$RUN_TEST_NUMBER," in
|
||||
|
||||
Reference in New Issue
Block a user