check_test_cases.py: use check_output to capture error and return

This commit includes:
 - use subprocess.check_output to report error and capture return
   value
 - add comment as a reminder for option --list-test-case

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
diff --git a/tests/compat.sh b/tests/compat.sh
index d63fc06..ff621fc 100755
--- a/tests/compat.sh
+++ b/tests/compat.sh
@@ -121,6 +121,7 @@
     done
 }
 
+# list_test_case lists all potential test cases in compat.sh without execution
 list_test_case() {
     reset_ciphersuites
     for TYPE in $TYPES; do
@@ -169,6 +170,8 @@
             -M|--memcheck)
                 MEMCHECK=1
                 ;;
+            # Please check scripts/check_test_cases.py correspondingly
+            # if you have to modify option, --list-test-case
             --list-test-case)
                 list_test_case
                 exit 0