]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/qemu-iotests: Fix check for existing file in _require_disk_usage()
authorThomas Huth <thuth@redhat.com>
Mon, 8 Dec 2025 07:53:20 +0000 (08:53 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2025 16:40:34 +0000 (17:40 +0100)
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 <thuth@redhat.com>
Message-ID: <20251208075320.35682-1-thuth@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/common.rc

index 10d83d8361bba402181c26df359656361f6de4ce..c0f8f0f8dfa6c059dcc52dcfdd99e77e7606c86f 100644 (file)
@@ -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