mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-10 15:45:34 +00:00
Use the outputs as keys if the test case is defined in a script
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
3c170d3298
commit
443c479faf
@ -137,8 +137,14 @@ class TestDescriptions(TestDescriptionExplorer):
|
||||
def process_test_case(self, _per_file_state,
|
||||
file_name, _line_number, description):
|
||||
"""Record an available test case."""
|
||||
base_name = re.sub(r'\.[^.]*$', '', re.sub(r'.*/', '', file_name))
|
||||
key = ';'.join([base_name, description.decode('utf-8')])
|
||||
if file_name.endswith('.data'):
|
||||
base_name = re.sub(r'\.[^.]*$', '', re.sub(r'.*/', '', file_name))
|
||||
key = ';'.join([base_name, description.decode('utf-8')])
|
||||
else:
|
||||
# For test cases defined in scripts (i.e. ssl-op.sh and compat.sh),
|
||||
# we need the script to list the suite name, and use the outputs
|
||||
# as keys directly.
|
||||
key = description.decode('utf-8')
|
||||
self.descriptions.add(key)
|
||||
|
||||
def collect_available_test_cases():
|
||||
|
Loading…
x
Reference in New Issue
Block a user