aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2017-11-23 03:08:20 +0100
committerMax Reitz <mreitz@redhat.com>2018-01-23 12:34:43 +0100
commit6dd6d7abf0a68a1e6639572ec09f69a9e0558207 (patch)
treea81ba00537c9dfd3f6c19ac5ae49738f17f28a09 /tests
parent23c4b2a8967c59c801e665843e207dbfe1634952 (diff)
downloadqemu-6dd6d7abf0a68a1e6639572ec09f69a9e0558207.zip
qemu-6dd6d7abf0a68a1e6639572ec09f69a9e0558207.tar.gz
qemu-6dd6d7abf0a68a1e6639572ec09f69a9e0558207.tar.bz2
iotests: Fix _img_info for backslashes
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/qemu-iotests/common.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index dbae7d7..6fa0495 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -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