ssl-opt.sh: Don't affect the order at which functions are printed

When adding the LIST_TESTS option, print_name can be called
before checking if the test case should be excluded or not.
Change this back to its previous state while still taking into
account the LIST_TESTS option.

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
This commit is contained in:
Tomás González 2023-09-01 11:25:44 +01:00
parent be2c66e548
commit 37a8739e4d

View file

@ -1594,18 +1594,18 @@ run_test() {
NAME="$1"
shift 1
print_name "$NAME"
if [ "$LIST_TESTS" -gt 0 ]; then
return
fi
if is_excluded "$NAME"; then
SKIP_NEXT="NO"
# There was no request to run the test, so don't record its outcome.
return
fi
print_name "$NAME"
if [ "$LIST_TESTS" -gt 0 ]; then
return
fi
# Do we only run numbered tests?
if [ -n "$RUN_TEST_NUMBER" ]; then
case ",$RUN_TEST_NUMBER," in