mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
check_test_cases.py: simplify how to store test case description
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
@ -123,12 +123,11 @@ state may override this method.
|
|||||||
print(*compat_cmd, 'returned', str(result.returncode))
|
print(*compat_cmd, 'returned', str(result.returncode))
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
# Pattern: g->m dtls12,no TLS_DHE_PSK_WITH_AES_128_CBC_SHA .......... \n
|
# Assume compat.sh is responsible for printing identical format of
|
||||||
m = re.findall(br'[^ogm]*((?:[ogm]->[ogm]\s*\w*.\w*\s\w*)*)\s*\.*\s*\n',
|
# test case description between --list-test-case and its OUTCOME.CSV
|
||||||
result.stdout)
|
description = result.stdout.strip().split(b'\n')
|
||||||
if m:
|
for idx, descrip in enumerate(description):
|
||||||
for i in m:
|
self.process_test_case(descriptions, file_name, idx, descrip)
|
||||||
self.process_test_case(descriptions, file_name, 1, i)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def collect_test_directories():
|
def collect_test_directories():
|
||||||
|
Reference in New Issue
Block a user