From ab0065e36adf8becd9c1ffceec37ee809ce683af Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Mon, 8 Dec 2025 08:53:20 +0100 Subject: [PATCH] tests/qemu-iotests: Fix check for existing file in _require_disk_usage() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Looks like the "$" has been forgotten here to get the contents of the FILENAME variable. Fixes: c49dda7254d ("iotests: Filter out ZFS in several tests") Signed-off-by: Thomas Huth Message-ID: <20251208075320.35682-1-thuth@redhat.com> Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- tests/qemu-iotests/common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 10d83d8361..c0f8f0f8df 100644 --- a/tests/qemu-iotests/common.rc +++ b/tests/qemu-iotests/common.rc @@ -1008,7 +1008,7 @@ _require_disk_usage() else FILENAME="$TEST_IMG_FILE" fi - if [ -e "FILENAME" ]; then + if [ -e "$FILENAME" ]; then echo "unwilling to overwrite existing file" exit 1 fi