]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: stop output from zstd command when uncompressing
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 28 Feb 2025 10:27:38 +0000 (10:27 +0000)
committerThomas Huth <thuth@redhat.com>
Fri, 7 Mar 2025 06:50:19 +0000 (07:50 +0100)
commit981395889201f556c37e18c7a896d2555ffa4373
treeee83117d8477886d7f7e29a74d152e576d0a7388
parent5ad2c8f357a76bbc502452c60076a4b36708f46a
tests/functional: stop output from zstd command when uncompressing

The zstd command will print incremental decompression progress to stderr
when running. Fortunately it is not on stdout as that would confuse the
TAP parsing, but we should still not have this printed. By switching
from 'check_call' to 'run' with the check=True and capture_output=True
we'll get the desired silence on success, and on failure the raised
exception will automatically include stdout/stderr data for diagnosis
purposes.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250228102738.3064045-8-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/uncompress.py