From: Luca Boccassi Date: Thu, 18 Dec 2025 17:51:06 +0000 (+0000) Subject: Revert "integration-test: check tools distribution rather than image distribution" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=293a925e9e418ba3d6f2f35a338cbf16609fb932;p=thirdparty%2Fsystemd.git Revert "integration-test: check tools distribution rather than image distribution" This reverts commit fd2cdadc1467c7f57866d45fb579e7cf3830bf54. --- diff --git a/test/integration-tests/integration-test-wrapper.py b/test/integration-tests/integration-test-wrapper.py index c65a77f3bb1..738fe60681b 100755 --- a/test/integration-tests/integration-test-wrapper.py +++ b/test/integration-tests/integration-test-wrapper.py @@ -75,18 +75,6 @@ class Summary: ) -def tools_os_release(field: str) -> str: - return subprocess.run( - [ - 'bash', - '-c', - f'set -eu; . /etc/os-release; echo ${field}', - ], - stdout=subprocess.PIPE, - text=True, - ).stdout.rstrip() - - def process_coredumps(args: argparse.Namespace, journal_file: Path) -> bool: # Collect executable paths of all coredumps and filter out the expected ones. @@ -630,11 +618,11 @@ def main() -> None: # XXX: debug for https://github.com/systemd/systemd/issues/38240 if vm: # Tracing is not supported in centos/fedora qemu builds - if tools_os_release('ID') in ('centos', 'fedora'): + if summary.distribution in ('centos', 'fedora'): cmd += ['--qemu-args=-d cpu_reset,guest_errors -D /dev/stderr'] else: cmd += [ - '--qemu-args=-d cpu_reset,guest_errors,trace:kvm_run_exit_system_event,trace:qemu_system_*_request -D /dev/stderr' # noqa: E501 + '--qemu-args=-d cpu_reset,guest_errors,trace:kvm_run_exit_system_event,trace:qemu_system_\*_request -D /dev/stderr' # noqa: E501 ] try: