From: Thomas Huth Date: Mon, 8 Dec 2025 07:53:20 +0000 (+0100) Subject: tests/qemu-iotests: Fix check for existing file in _require_disk_usage() X-Git-Tag: v10.2.0-rc4~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab0065e36adf8becd9c1ffceec37ee809ce683af;p=thirdparty%2Fqemu.git tests/qemu-iotests: Fix check for existing file in _require_disk_usage() 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 --- 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