tests/qemu-iotests: Fix check for existing file in _require_disk_usage()
PATCH 1/1 tests/qemu-iotests: Fix check for existing file in _require_disk_usage()
From: Thomas Huth <[email protected]>
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 <[email protected]>
--- tests/qemu-iotests/common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/common.rc +1 -1
@@ -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
Signature · 1 line
2.52.0
Quoted 26 lines · On Mon, 8 Dec 2025 08:53:20 +0100 Thomas Huth <[email protected]> wrote:
From: Thomas Huth <[email protected]>
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 <[email protected]>--- tests/qemu-iotests/common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/qemu-iotests/common.rc +1
-1@@ -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 fiSignature · 1 line
2.52.0
Reviewed-by Laurent Vivier <[email protected]>
Thanks!
Quoted 10 lines · Thomas Huth
From: Thomas Huth <[email protected]>
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 <[email protected]>--- tests/qemu-iotests/common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Kevin Wolf
AppliedAm 08.12.2025 um 08:53 hat Thomas Huth geschrieben:
Quoted 7 lines
From: Thomas Huth <[email protected]>
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 <[email protected]>
Thanks, applied to the block branch.
Kevin