From a794ccf127970b02e1d9f95bd2ee22d35ccfec83 Mon Sep 17 00:00:00 2001 From: Shreyashxredhat Date: Sat, 30 May 2026 18:09:04 +0530 Subject: [PATCH] zpool: reduce disk usage in integration tests by using sparse files (#12128) * zpool: use sparse files in integration tests to reduce diskspace usage * changelog: add PR link to zpool disk space fragment * remove changelog fragment for test-only change --- tests/integration/targets/zpool/aliases | 1 - tests/integration/targets/zpool/tasks/main.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration/targets/zpool/aliases b/tests/integration/targets/zpool/aliases index ee12b05e97..73cd4069d2 100644 --- a/tests/integration/targets/zpool/aliases +++ b/tests/integration/targets/zpool/aliases @@ -11,4 +11,3 @@ skip/macos skip/rhel skip/docker skip/alpine # TODO: figure out what goes wrong -skip/ubuntu26.04 # TODO: VM seems to have less disk space than required diff --git a/tests/integration/targets/zpool/tasks/main.yml b/tests/integration/targets/zpool/tasks/main.yml index ce2ab9cb46..8550447f7d 100644 --- a/tests/integration/targets/zpool/tasks/main.yml +++ b/tests/integration/targets/zpool/tasks/main.yml @@ -8,7 +8,7 @@ block: - name: Ensure disk files exists ansible.builtin.command: - cmd: "dd if=/dev/zero of={{ item }} bs=1M count=256 conv=fsync" + cmd: "truncate -s 256M {{ item }}" creates: "{{ item }}" loop: "{{ zpool_disk_configs }}"