mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-26 12:39:55 +00:00
tests/check_test_cases: Use subprocess.check_output instead of run
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
This commit is contained in:
parent
079eaee8ca
commit
970b39fb38
@ -102,9 +102,8 @@ state may override this method.
|
|||||||
def walk_ssl_opt_sh(self, file_name):
|
def walk_ssl_opt_sh(self, file_name):
|
||||||
"""Iterate over the test cases in ssl-opt.sh or a file with a similar format."""
|
"""Iterate over the test cases in ssl-opt.sh or a file with a similar format."""
|
||||||
descriptions = self.new_per_file_state() # pylint: disable=assignment-from-none
|
descriptions = self.new_per_file_state() # pylint: disable=assignment-from-none
|
||||||
listed = subprocess.run([f'{file_name}', '-l'],
|
listed = subprocess.check_output([f'{file_name}', '-l'])
|
||||||
capture_output=True)
|
listed = set(map(lambda x: x.rstrip(), listed.splitlines()))
|
||||||
listed = set(map(lambda x: x.rstrip(), listed.stdout.splitlines()))
|
|
||||||
for description in listed:
|
for description in listed:
|
||||||
self.process_test_case(descriptions, file_name, None, description)
|
self.process_test_case(descriptions, file_name, None, description)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user