generate-all-test-cases: capture manifests output
Capture stdout and stderr output when running generate-test-casesin the manifests command. This is helpful for debugging test case generation failures. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
40c095a850
commit
5be81326eb
1 changed files with 2 additions and 2 deletions
|
|
@ -1290,9 +1290,9 @@ class ManifestTestCaseMatrixGenerator(BaseTestCaseMatrixGenerator):
|
|||
script_dir = os.path.dirname(__file__)
|
||||
log.info("Generating manifest for %s-%s-%s", distro_name, arch_name, image_type)
|
||||
try:
|
||||
subprocess.check_call([f"{script_dir}/generate-test-cases", "--distro", f"{distro_name}", "--arch",
|
||||
subprocess.run([f"{script_dir}/generate-test-cases", "--distro", f"{distro_name}", "--arch",
|
||||
f"{arch_name}", "--image-types", f"{image_type}", "--store", "/dev/null", "--output", f"{self.output}",
|
||||
"--keep-image-info"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
"--keep-image-info"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True, encoding="utf-8")
|
||||
except subprocess.CalledProcessError as e:
|
||||
log.error("Generating manifest for %s-%s-%s FAILED: %s", distro_name, arch_name, image_type, e)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue