mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
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:
parent
be2c66e548
commit
37a8739e4d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user