1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-07 12:21:11 +03:00

check_test_cases.py: do not redirect stderr to stdout

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang
2023-03-06 19:35:04 +08:00
parent 8844844582
commit 67fe2644ae

View File

@ -116,8 +116,7 @@ state may override this method.
"""Iterate over the test cases compat.sh with a similar format.""" """Iterate over the test cases compat.sh 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
compat_cmd = ['sh', file_name, '--list-test-case'] compat_cmd = ['sh', file_name, '--list-test-case']
compat_output = subprocess.check_output(compat_cmd, compat_output = subprocess.check_output(compat_cmd)
stderr=subprocess.STDOUT)
# Assume compat.sh is responsible for printing identical format of # Assume compat.sh is responsible for printing identical format of
# test case description between --list-test-case and its OUTCOME.CSV # test case description between --list-test-case and its OUTCOME.CSV
description = compat_output.strip().split(b'\n') description = compat_output.strip().split(b'\n')