]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
iotests: Fix _img_info for backslashes
authorMax Reitz <mreitz@redhat.com>
Thu, 23 Nov 2017 02:08:20 +0000 (03:08 +0100)
committerMax Reitz <mreitz@redhat.com>
Tue, 23 Jan 2018 11:34:43 +0000 (12:34 +0100)
read without -r eats backslashes.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20171123020832.8165-6-mreitz@redhat.com
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/common.rc

index dbae7d74ba082800e9b586dbba89abd70054eefa..6fa0495e10c84f97d320bc52cb33db65f73b063f 100644 (file)
@@ -338,7 +338,7 @@ _img_info()
             -e "s#$IMGFMT#IMGFMT#g" \
             -e "/^disk size:/ D" \
             -e "/actual-size/ D" | \
-        while IFS='' read line; do
+        while IFS='' read -r line; do
             if [[ $format_specific == 1 ]]; then
                 discard=0
             elif [[ $line == "Format specific information:" ]]; then