From 3c170d32985e65f51cf86de4b5ae195bc274802e Mon Sep 17 00:00:00 2001 From: Pengyu Lv Date: Wed, 29 Nov 2023 13:53:34 +0800 Subject: [PATCH] Print suite name when listing test cases When a test script has multiple suites, it is not true to determine the suite name from the file name of the script. We need the script to list the suite name for every test cases. Signed-off-by: Pengyu Lv --- tests/compat.sh | 2 +- tests/ssl-opt.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/compat.sh b/tests/compat.sh index ac29e50c35..a101ffd138 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -125,7 +125,7 @@ print_usage() { print_test_case() { for i in $3; do uniform_title $1 $2 $i - echo $TITLE + echo "compat;$TITLE" done } diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 42f9f5e5a7..43a8863558 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -1620,7 +1620,7 @@ run_test() { fi if [ "$LIST_TESTS" -gt 0 ]; then - printf "%s\n" "$NAME" + printf "%s\n" "${TEST_SUITE_NAME:-ssl-opt};$NAME" return fi