[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 05/17] iotests: Fix _img_info for backslashes
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH 05/17] iotests: Fix _img_info for backslashes |
Date: |
Thu, 23 Nov 2017 03:08:20 +0100 |
read without -r eats backslashes.
Signed-off-by: Max Reitz <address@hidden>
---
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
--
2.13.6
- [Qemu-devel] [PATCH 00/17] iotests: Fix iotests for weird formats/options, Max Reitz, 2017/11/22
- [Qemu-devel] [PATCH 01/17] block/vmdk: Fix , instead of ; at end of line, Max Reitz, 2017/11/22
- [Qemu-devel] [PATCH 02/17] qcow2: No persistent dirty bitmaps for compat=0.10, Max Reitz, 2017/11/22
- [Qemu-devel] [PATCH 03/17] block/qcow: Add blkdebug events, Max Reitz, 2017/11/22
- [Qemu-devel] [PATCH 04/17] block/vmdk: Add blkdebug events, Max Reitz, 2017/11/22
- [Qemu-devel] [PATCH 05/17] iotests: Fix _img_info for backslashes,
Max Reitz <=
- [Qemu-devel] [PATCH 06/17] iotests: Drop format-specific in _filter_img_info, Max Reitz, 2017/11/22
- [Qemu-devel] [PATCH 07/17] iotests: Forbid 020 for non-file protocols, Max Reitz, 2017/11/22
- [Qemu-devel] [PATCH 08/17] iotests: Skip 103 for refcount_bits=1, Max Reitz, 2017/11/22