From patchwork Thu Nov 5 10:01:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 57866 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA5A3sUS017007 for ; Thu, 5 Nov 2009 10:03:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753456AbZKEKDp (ORCPT ); Thu, 5 Nov 2009 05:03:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751252AbZKEKDo (ORCPT ); Thu, 5 Nov 2009 05:03:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37781 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753372AbZKEKDn (ORCPT ); Thu, 5 Nov 2009 05:03:43 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nA5A3mbU031683; Thu, 5 Nov 2009 05:03:48 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA5A3lfX018012; Thu, 5 Nov 2009 05:03:47 -0500 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id nA5A3aFi017064; Thu, 5 Nov 2009 05:03:46 -0500 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 6/7] KVM test: kvm_config.py: match(): put filter inside parentheses Date: Thu, 5 Nov 2009 12:01:11 +0200 Message-Id: <1257415272-9423-6-git-send-email-mgoldish@redhat.com> In-Reply-To: <1257415272-9423-5-git-send-email-mgoldish@redhat.com> References: <1257415272-9423-1-git-send-email-mgoldish@redhat.com> <1257415272-9423-2-git-send-email-mgoldish@redhat.com> <1257415272-9423-3-git-send-email-mgoldish@redhat.com> <1257415272-9423-4-git-send-email-mgoldish@redhat.com> <1257415272-9423-5-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/kvm_config.py b/client/tests/kvm/kvm_config.py index 52de4c7..649f2c3 100755 --- a/client/tests/kvm/kvm_config.py +++ b/client/tests/kvm/kvm_config.py @@ -83,7 +83,7 @@ class config: @param filter: A regular expression that defines the filter. @param dict: Dictionary that will be inspected. """ - filter = re.compile(r"(\.|^)" + filter + r"(\.|$)") + filter = re.compile(r"(\.|^)(%s)(\.|$)" % filter) return bool(filter.search(dict["name"]))