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 cdc0708334
commit 2b50c651da

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')