Avoid using print_name when --list-test-cases is used

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
This commit is contained in:
Tomás González 2023-09-07 10:21:19 +01:00
parent 378e364c3c
commit 51cb704342

View File

@ -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