\n in the JSON becomes just n. Fix read command output using -r.

Signed-off-by: Marc-André Lureau <[email protected]>
---
 tests/qemu-iotests/common.qemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qemu-iotests/common.qemu b/tests/qemu-iotests/common.qemu
index 0f1fecc68edf..e5b6a6a87494 100644
--- a/tests/qemu-iotests/common.qemu
+++ b/tests/qemu-iotests/common.qemu
@@ -90,7 +90,7 @@ _timed_wait_for()
         read_timeout=
     fi
 
-    while IFS= read ${read_timeout} resp <&${QEMU_OUT[$h]}
+    while IFS= read -r ${read_timeout} resp <&${QEMU_OUT[$h]}
     do
         if [ -n "$capture_events" ]; then
             capture=0

-- 
2.56.0.rc0.29.g47ce80527c56


Reply via email to