From 6dd6d7abf0a68a1e6639572ec09f69a9e0558207 Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Thu, 23 Nov 2017 03:08:20 +0100 Subject: [PATCH] iotests: Fix _img_info for backslashes read without -r eats backslashes. Signed-off-by: Max Reitz Message-id: 20171123020832.8165-6-mreitz@redhat.com Reviewed-by: Fam Zheng Signed-off-by: Max Reitz --- tests/qemu-iotests/common.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index dbae7d74ba..6fa0495e10 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