From nobody Sun Feb 8 18:29:36 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1586263239; cv=none; d=zohomail.com; s=zohoarc; b=MsAtZwc6X9PtQEVydBEr1VIYrTo1bDmxGkGOKaaXjCIgpy7SyxkZeCKRwWsYayXxuWysPlnCduxtgNsAPAuO7Jp8QHo53deh9XPhKkqD+Tqm18rRx8IZTq0TCmRNk6vcph+P6SWYDsuqwczRGhE2swFugIIxOcjrzzm4zJvEGuc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586263239; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=P9sMMcwTn/qfPhGYjkb+FTpCQd50xWJGCzLtpVpetcw=; b=gV5KaQxtl07yNZeEz/cTEp63xb1SJPiU2KGt0aP4lUDr+SUVq27GsiNlhl8qvt9xk3IJ8BYa8vf7VaxQ1gqagdoMlrcM2oVbaX1m4XeWPVihKOjSiGeRnRIbXhtq97OMWCzOyXeY1j7f+BV41S28tgNy9oTwcRXYWpp4+hRlvJM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1586263239855652.5463050450753; Tue, 7 Apr 2020 05:40:39 -0700 (PDT) Received: from localhost ([::1]:46738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLnWw-0003Vl-LR for importer@patchew.org; Tue, 07 Apr 2020 08:40:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34720) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLnUB-0007Xt-Ai for qemu-devel@nongnu.org; Tue, 07 Apr 2020 08:37:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLnUA-0006nK-7J for qemu-devel@nongnu.org; Tue, 07 Apr 2020 08:37:47 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:25272 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jLnUA-0006l5-1p for qemu-devel@nongnu.org; Tue, 07 Apr 2020 08:37:46 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-392-9JvTchx-MiOWMdobkPiW8w-1; Tue, 07 Apr 2020 08:37:41 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B6FE01B18BC6; Tue, 7 Apr 2020 12:37:40 +0000 (UTC) Received: from localhost (ovpn-114-84.ams2.redhat.com [10.36.114.84]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 340AC5DA7C; Tue, 7 Apr 2020 12:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586263063; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P9sMMcwTn/qfPhGYjkb+FTpCQd50xWJGCzLtpVpetcw=; b=jDN9ytwXR6CNEYaKdiT3IuHhdxEaHsxJ3dAypUWOYG/7r/vP76clTgpi33NVRCPbYF4gXO texVjFOKSoymdZEmqZTnKDKN/K/dRG8d8XSPX5yH0Mcd5YxQ/xJYyxGIrJrnsFOdgAdxkw tJUVJmYCbzimTJTWgfXTfRbMyDdWeK0= X-MC-Unique: 9JvTchx-MiOWMdobkPiW8w-1 From: Max Reitz To: qemu-block@nongnu.org Subject: [PULL 4/5] iotests/common.pattern: Quote echos Date: Tue, 7 Apr 2020 14:37:26 +0200 Message-Id: <20200407123727.829933-5-mreitz@redhat.com> In-Reply-To: <20200407123727.829933-1-mreitz@redhat.com> References: <20200407123727.829933-1-mreitz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Peter Maydell , qemu-devel@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From time to time, my shell decides to repace the bracketed numbers here by the numbers inside (i.e., "=3D=3D=3D Clusters to be compressed [1]" is printed as "=3D=3D=3D Clusters to be compressed 1"). That makes tests that use common.pattern fail. Prevent that from happening by quoting the arguments to all echos in common.pattern. Signed-off-by: Max Reitz Message-Id: <20200403101134.805871-1-mreitz@redhat.com> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Eric Blake Signed-off-by: Max Reitz --- tests/qemu-iotests/common.pattern | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/qemu-iotests/common.pattern b/tests/qemu-iotests/common.= pattern index 4f5e5bcea0..4caa5de187 100644 --- a/tests/qemu-iotests/common.pattern +++ b/tests/qemu-iotests/common.pattern @@ -23,7 +23,7 @@ do_is_allocated() { local count=3D$4 =20 for ((i=3D1;i<=3D$count;i++)); do - echo alloc $(( start + (i - 1) * step )) $size + echo "alloc $(( start + (i - 1) * step )) $size" done } =20 @@ -39,9 +39,9 @@ do_io() { local count=3D$5 local pattern=3D$6 =20 - echo =3D=3D=3D IO: pattern $pattern >&2 + echo "=3D=3D=3D IO: pattern $pattern" >&2 for ((i=3D1;i<=3D$count;i++)); do - echo $op -P $pattern $(( start + (i - 1) * step )) $size + echo "$op -P $pattern $(( start + (i - 1) * step )) $size" done } =20 @@ -110,31 +110,31 @@ io_test2() { # free - free - compressed =20 # Write the clusters to be compressed - echo =3D=3D=3D Clusters to be compressed [1] + echo '=3D=3D=3D Clusters to be compressed [1]' io_pattern writev $((offset + 4 * $cluster_size)) $cluster_size $((9 *= $cluster_size)) $num 165 - echo =3D=3D=3D Clusters to be compressed [2] + echo '=3D=3D=3D Clusters to be compressed [2]' io_pattern writev $((offset + 5 * $cluster_size)) $cluster_size $((9 *= $cluster_size)) $num 165 - echo =3D=3D=3D Clusters to be compressed [3] + echo '=3D=3D=3D Clusters to be compressed [3]' io_pattern writev $((offset + 8 * $cluster_size)) $cluster_size $((9 *= $cluster_size)) $num 165 =20 mv "$TEST_IMG" "$TEST_IMG.orig" $QEMU_IMG convert -f $IMGFMT -O $IMGFMT -c "$TEST_IMG.orig" "$TEST_IMG" =20 # Write the used clusters - echo =3D=3D=3D Used clusters [1] + echo '=3D=3D=3D Used clusters [1]' io_pattern writev $((offset + 0 * $cluster_size)) $cluster_size $((9 *= $cluster_size)) $num 165 - echo =3D=3D=3D Used clusters [2] + echo '=3D=3D=3D Used clusters [2]' io_pattern writev $((offset + 1 * $cluster_size)) $cluster_size $((9 *= $cluster_size)) $num 165 - echo =3D=3D=3D Used clusters [3] + echo '=3D=3D=3D Used clusters [3]' io_pattern writev $((offset + 3 * $cluster_size)) $cluster_size $((9 *= $cluster_size)) $num 165 =20 # Read them - echo =3D=3D=3D Read used/compressed clusters + echo '=3D=3D=3D Read used/compressed clusters' io_pattern readv $((offset + 0 * $cluster_size)) $((2 * $cluster_size)= ) $((9 * $cluster_size)) $num 165 io_pattern readv $((offset + 3 * $cluster_size)) $((3 * $cluster_size)= ) $((9 * $cluster_size)) $num 165 io_pattern readv $((offset + 8 * $cluster_size)) $((1 * $cluster_size)= ) $((9 * $cluster_size)) $num 165 =20 - echo =3D=3D=3D Read zeros + echo '=3D=3D=3D Read zeros' io_zero readv $((offset + 2 * $cluster_size)) $((1 * $cluster_size)) $= ((9 * $cluster_size)) $num io_zero readv $((offset + 6 * $cluster_size)) $((2 * $cluster_size)) $= ((9 * $cluster_size)) $num } --=20 2.25.1