mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
check_test_cases: Avoid removing duplicated test cases
One of the jobs of check_test_cases is to check for duplicate test descriptions and to have them ordered: * Stop using a set to collect the different test cases from the test scripts. Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
This commit is contained in:
parent
4a86da2460
commit
38ecf9fa1e
@ -105,11 +105,14 @@ option"""
|
|||||||
listed = subprocess.check_output(['sh', file_name, '--list-test-cases'])
|
listed = subprocess.check_output(['sh', file_name, '--list-test-cases'])
|
||||||
# Assume test file is responsible for printing identical format of
|
# Assume test file is responsible for printing identical format of
|
||||||
# test case description between --list-test-cases and its OUTCOME.CSV
|
# test case description between --list-test-cases and its OUTCOME.CSV
|
||||||
listed = set(map(lambda x: x.rstrip(), listed.splitlines()))
|
#
|
||||||
# idx indicates the number of test case since there is no line number
|
# idx indicates the number of test case since there is no line number
|
||||||
# in `compat.sh` for each test case.
|
# in `compat.sh` for each test case.
|
||||||
for idx, description in enumerate(listed):
|
for idx, description in enumerate(listed.splitlines()):
|
||||||
self.process_test_case(descriptions, file_name, idx, description)
|
self.process_test_case(descriptions,
|
||||||
|
file_name,
|
||||||
|
idx,
|
||||||
|
description.rstrip())
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def collect_test_directories():
|
def collect_test_directories():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user