Received: from eggs.gnu.org ([2001:4830:134:3::10]:45179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cIq3e-0002iB-DQ for Qemu-devel@nongnu.org; Mon, 19 Dec 2016 00:00:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cIq3Z-0006Ge-VE for Qemu-devel@nongnu.org; Mon, 19 Dec 2016 00:00:18 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:47309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cIq3Z-0006GG-LU for Qemu-devel@nongnu.org; Mon, 19 Dec 2016 00:00:13 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uBJ4x66x040260 for ; Mon, 19 Dec 2016 00:00:12 -0500 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0a-001b2d01.pphosted.com with ESMTP id 27dw84u8t6-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 19 Dec 2016 00:00:11 -0500 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 18 Dec 2016 22:00:11 -0700 References: <20161216054723.96055-1-haoqf@linux.vnet.ibm.com> <20161216054723.96055-2-haoqf@linux.vnet.ibm.com> From: Hao QingFeng Date: Mon, 19 Dec 2016 13:00:09 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v1 1/1] iotests: Fix a problem in common.filter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-block@nongnu.org Cc: cornelia.huck@de.ibm.com, borntraeger@de.ibm.com, "Qemu-devel@nongnu.org" , qemu-trivial =E5=9C=A8 2016-12-16 22:34, Eric Blake =E5=86=99=E9=81=93: > [adding qemu-devel, ALL patches should include the main list] > > On 12/15/2016 11:47 PM, QingFeng Hao wrote: >> If TEST_DIR is set to /tmp, test case 144 will fail. The reason is tha= t >> TEST_DIR duplicates with 144's test image name tmp.qcow2. > s/duplicates with/resembles/ yes > >> when 144 is testing $TEST_DIR/tmp.qcow2, it wants to replace >> $TEST_DIR/tmp.qcow2 to TEST_DIR/tmp.qcow2, but actually it will fail >> and get TEST_DIRTEST_DIR.qcow2 in this case. >> The fix is just to modify the code to replace $TEST_DIR/ with TEST_DIR= /. >> >> Signed-off-by: QingFeng Hao >> --- >> tests/qemu-iotests/common.filter | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/com= mon.filter >> index 240ed06..d29e965 100644 >> --- a/tests/qemu-iotests/common.filter >> +++ b/tests/qemu-iotests/common.filter >> @@ -35,7 +35,7 @@ _filter_generated_node_ids() >> # replace occurrences of the actual TEST_DIR value with TEST_DIR >> _filter_testdir() >> { >> - sed -e "s#$TEST_DIR#TEST_DIR#g" >> + sed -e "s#$TEST_DIR\/#TEST_DIR\/#g" > Why do you need \/? It should be sufficient to use / without escaping. > > But overall I agree with including the / in the pattern. It's too late > to include this in 2.8, but with the commit message grammar improved an= d > \ escape removed, I'm fine with: > > Reviewed-by: Eric Blake Right! We can use / directly in this case. Thanks :-) > I'm also adding qemu-trivial in cc, in case we want to take it through > that tree instead of the usual qemu-iotests. > --=20 QingFeng Hao(Robin)